Skip to content

Commit

Permalink
fix for empty columns
Browse files Browse the repository at this point in the history
  • Loading branch information
avirut committed Jul 16, 2023
1 parent d86683d commit e90dac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def simplefin_to_dataframe(simplefin_data, maps):

def update_worksheet(ws: gspread.Worksheet, subset, columns):
last_col = chr(ord("A") + len(columns) - 1)
ws_data = pd.DataFrame(ws.get_values(f"A2:{last_col}"), columns=columns)
ws_data = pd.DataFrame(ws.get_values(f"A1:{last_col}"), columns=columns).iloc[1:, :]
sf_data = subset.copy()

new_data = (
Expand Down

0 comments on commit e90dac7

Please sign in to comment.