Spaces:
Sleeping
Sleeping
Pavlo Kostianov
commited on
Commit
·
3e102a6
1
Parent(s):
82bc971
Remove headers from Budget Summary
Browse files
app.py
CHANGED
|
@@ -41,8 +41,6 @@ for sheet, raw_df in df1_all.items():
|
|
| 41 |
)
|
| 42 |
|
| 43 |
# Part 2: summary section (rows 21–33)
|
| 44 |
-
# Take row 3 (index 3 in header=None) as column headers
|
| 45 |
-
summary_headers = budget_raw.iloc[3].tolist()
|
| 46 |
budget_summary = budget_raw.iloc[21:33].reset_index(drop=True)
|
| 47 |
budget_summary.columns = summary_headers
|
| 48 |
|
|
@@ -90,7 +88,7 @@ def get_schema_info():
|
|
| 90 |
# Add all rows as examples
|
| 91 |
try:
|
| 92 |
all_rows = df.to_dict(orient="records")
|
| 93 |
-
lines.append("
|
| 94 |
for row in all_rows:
|
| 95 |
lines.append(str(row))
|
| 96 |
except Exception:
|
|
|
|
| 41 |
)
|
| 42 |
|
| 43 |
# Part 2: summary section (rows 21–33)
|
|
|
|
|
|
|
| 44 |
budget_summary = budget_raw.iloc[21:33].reset_index(drop=True)
|
| 45 |
budget_summary.columns = summary_headers
|
| 46 |
|
|
|
|
| 88 |
# Add all rows as examples
|
| 89 |
try:
|
| 90 |
all_rows = df.to_dict(orient="records")
|
| 91 |
+
lines.append("All rows:")
|
| 92 |
for row in all_rows:
|
| 93 |
lines.append(str(row))
|
| 94 |
except Exception:
|