Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -47,6 +47,7 @@ def bot():
|
|
| 47 |
print(user_question)
|
| 48 |
data = eval(str(json_table))
|
| 49 |
df = pd.DataFrame(data)
|
|
|
|
| 50 |
df = df.rename(columns={'dateupdated': 'date'})
|
| 51 |
df['date'] = pd.to_datetime(df['date'], format="%b %d", errors='coerce')
|
| 52 |
#df['Profit'] = df['Profit'].apply(lambda x: "R{:.1f}".format((x)))
|
|
|
|
| 47 |
print(user_question)
|
| 48 |
data = eval(str(json_table))
|
| 49 |
df = pd.DataFrame(data)
|
| 50 |
+
print(list(df))
|
| 51 |
df = df.rename(columns={'dateupdated': 'date'})
|
| 52 |
df['date'] = pd.to_datetime(df['date'], format="%b %d", errors='coerce')
|
| 53 |
#df['Profit'] = df['Profit'].apply(lambda x: "R{:.1f}".format((x)))
|