AddAIAvengers commited on
Commit
79be45b
·
verified ·
1 Parent(s): 6364399

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import pandas as pd
5
  def process_csv(df):
6
  # Replace all comma symbols in the 'request_text' column with nothing
7
  df['request_text'] = df['request_text'].str.replace(',', '')
 
8
  # Split the 'title' column on ' -' and keep only the first part
9
  df['title'] = df['title'].str.split(' -').str[0]
10
  df = df.rename(columns={'request_text': 'Veta', 'intent_1': 'Intent', 'title': 'ID Odpovedi'})
 
5
  def process_csv(df):
6
  # Replace all comma symbols in the 'request_text' column with nothing
7
  df['request_text'] = df['request_text'].str.replace(',', '')
8
+ df['title'] = df['title'].str.replace(',', '')
9
  # Split the 'title' column on ' -' and keep only the first part
10
  df['title'] = df['title'].str.split(' -').str[0]
11
  df = df.rename(columns={'request_text': 'Veta', 'intent_1': 'Intent', 'title': 'ID Odpovedi'})