Spaces:
Running
Running
Commit ·
dcb385e
1
Parent(s): b103d78
Update DataFrame row limit in get_as_df method to 9999
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ class Agent:
|
|
| 106 |
worksheet = client.open_by_url(SHEET_URL)
|
| 107 |
wk = worksheet[0]
|
| 108 |
# Get number of rows in the worksheet
|
| 109 |
-
df = wk.get_as_df(start='A1', end='
|
| 110 |
nrows = df.shape[0]
|
| 111 |
wk.update_value(f'A{nrows+2}', result.amount) # type: ignore
|
| 112 |
wk.update_value(f'B{nrows+2}', result.dr_or_cr) # type: ignore
|
|
|
|
| 106 |
worksheet = client.open_by_url(SHEET_URL)
|
| 107 |
wk = worksheet[0]
|
| 108 |
# Get number of rows in the worksheet
|
| 109 |
+
df = wk.get_as_df(start='A1', end='G9999') # type: ignore
|
| 110 |
nrows = df.shape[0]
|
| 111 |
wk.update_value(f'A{nrows+2}', result.amount) # type: ignore
|
| 112 |
wk.update_value(f'B{nrows+2}', result.dr_or_cr) # type: ignore
|