You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
at first, thanks for the cool software.
Without the option --tax-output=2021 the program works fine.
However, when using the option --tax-output=2021 it prints the summary for 2021 on the command line but the csv file is not generated. It breaks with the following trace.
Traceback (most recent call last):
File "./tw-pnl.py", line 1124, in
main(sys.argv[1:])
File "./tw-pnl.py", line 1121, in main
check(all_wk, output_summary, output_csv, output_excel, tax_output, show)
File "./tw-pnl.py", line 1046, in check
new_wk = append_yearly_stats(new_wk, tax_output, stats, min_year, max_year)
File "./tw-pnl.py", line 710, in append_yearly_stats
df = df_append_row(df, ['', '', '', '', '', '', '', '', '', '', ''] + end)
File "./tw-pnl.py", line 465, in df_append_row
df.loc[len(df)] = row
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 723, in setitem
iloc._setitem_with_indexer(indexer, value, self.name)
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 1724, in _setitem_with_indexer
self._setitem_with_indexer_missing(indexer, value)
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 2027, in _setitem_with_indexer_missing
raise ValueError("cannot set a row with mismatched columns")
ValueError: cannot set a row with mismatched columns
The text was updated successfully, but these errors were encountered:
Hello,
at first, thanks for the cool software.
Without the option --tax-output=2021 the program works fine.
However, when using the option --tax-output=2021 it prints the summary for 2021 on the command line but the csv file is not generated. It breaks with the following trace.
Traceback (most recent call last):
File "./tw-pnl.py", line 1124, in
main(sys.argv[1:])
File "./tw-pnl.py", line 1121, in main
check(all_wk, output_summary, output_csv, output_excel, tax_output, show)
File "./tw-pnl.py", line 1046, in check
new_wk = append_yearly_stats(new_wk, tax_output, stats, min_year, max_year)
File "./tw-pnl.py", line 710, in append_yearly_stats
df = df_append_row(df, ['', '', '', '', '', '', '', '', '', '', ''] + end)
File "./tw-pnl.py", line 465, in df_append_row
df.loc[len(df)] = row
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 723, in setitem
iloc._setitem_with_indexer(indexer, value, self.name)
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 1724, in _setitem_with_indexer
self._setitem_with_indexer_missing(indexer, value)
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 2027, in _setitem_with_indexer_missing
raise ValueError("cannot set a row with mismatched columns")
ValueError: cannot set a row with mismatched columns
The text was updated successfully, but these errors were encountered: