mincong-h / finance-toolkit

Finance Toolkit
3 stars 1 forks source link

TypeError: '<' not supported between instances of 'str' and 'Timestamp' #47

Closed mincong-h closed 2 years ago

mincong-h commented 2 years ago

Error:

➜  finance-toolkit git:(master u=) ./bin/docker-finance.sh move
Traceback (most recent call last):
  File "/usr/local/bin/finance-toolkit", line 33, in <module>
    sys.exit(load_entry_point('finance-toolkit==0.1.0', 'console_scripts', 'finance-toolkit')())
  File "/usr/local/lib/python3.7/site-packages/finance_toolkit-0.1.0-py3.7.egg/finance_toolkit/__main__.py", line 55, in main
  File "/usr/local/lib/python3.7/site-packages/finance_toolkit-0.1.0-py3.7.egg/finance_toolkit/tx.py", line 245, in move
  File "/usr/local/lib/python3.7/site-packages/finance_toolkit-0.1.0-py3.7.egg/finance_toolkit/pipelines.py", line 103, in run
  File "/usr/local/lib/python3.7/site-packages/finance_toolkit-0.1.0-py3.7.egg/finance_toolkit/pipelines.py", line 123, in write_balances
  File "/usr/local/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/core/frame.py", line 5462, in sort_values
    k, kind=kind, ascending=ascending, na_position=na_position, key=key
  File "/usr/local/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/core/sorting.py", line 379, in nargsort
    indexer = non_nan_idx[non_nans.argsort(kind=kind)]
TypeError: '<' not supported between instances of 'str' and 'Timestamp'

This happens when downloading new CSV files from BNP Paribas

mincong-h commented 2 years ago

This is because we had some Git conflicts persisted inside the finance-data Git repository. Now the conflicts are solved, it does not happen anymore.