jontwo / bank

Bank account statement handler
GNU General Public License v3.0
0 stars 0 forks source link

Support pandas > 2 #2

Open jontwo opened 9 months ago

jontwo commented 9 months ago

Pandas 2.0 is stricter on date formats, so to_datetime needs to be updated. I think it means changing

pandas.to_datetime(actual['Date'], dayfirst=True)

to

pandas.to_datetime(actual['Date'], format="%d/%m/%y")

or

pandas.to_datetime(actual['Date'], format="ISO8601")

Will probably have to try/except all allowed formats?

jontwo commented 9 months ago

After doing this, CI can go back to Python 3.12