Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'})
|