Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
df['A'] = df['A'].astype(str)
Browse files
app.py
CHANGED
|
@@ -379,15 +379,18 @@ async def dataframe_test(ctx):
|
|
| 379 |
|
| 380 |
URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
| 381 |
csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
| 382 |
-
|
| 383 |
-
print(
|
| 384 |
|
|
|
|
| 385 |
|
|
|
|
|
|
|
| 386 |
#worksheet = gspread_bot.open("levelbot").sheet1
|
| 387 |
test_worksheet = gspread_bot.open("test").sheet1
|
| 388 |
|
| 389 |
#df = get_as_dataframe(worksheet, dtype={'a': np.int64})
|
| 390 |
-
set_with_dataframe(test_worksheet,
|
| 391 |
|
| 392 |
|
| 393 |
|
|
|
|
| 379 |
|
| 380 |
URL = "https://docs.google.com/spreadsheets/d/1hQSsIg1Y9WdBF_CdNM1L1rUUREoxKqRTe3_ILo-WK8w/edit#gid=0"
|
| 381 |
csv_url = URL.replace('/edit#gid=', '/export?format=csv&gid=')
|
| 382 |
+
df = pd.read_csv(csv_url)
|
| 383 |
+
print(df)
|
| 384 |
|
| 385 |
+
df['A'] = df['A'].astype(str)
|
| 386 |
|
| 387 |
+
|
| 388 |
+
|
| 389 |
#worksheet = gspread_bot.open("levelbot").sheet1
|
| 390 |
test_worksheet = gspread_bot.open("test").sheet1
|
| 391 |
|
| 392 |
#df = get_as_dataframe(worksheet, dtype={'a': np.int64})
|
| 393 |
+
set_with_dataframe(test_worksheet, df)
|
| 394 |
|
| 395 |
|
| 396 |
|