I am working on creating a personal finance dashboard and therefore integrating different CSV files downloaded from different sources into one big table.
The problem I am facing is that the date format in my downloaded CSV files gets formatted differently within the same file/column, and thus when I try to convert it through pd.to_datetime in python it gets the date wrong on some values.
Here is a picture for reference:
The left indented cells are formatted as General, while the right indented ones are formatted as Date.
When I just change the type of the whole column the ones already formatted as Date invert the Day/Month.
Any idea why this happens? It happens both to CSV files from my bank account and PayPal, so I assume there is some System setting I could change?
If not, is there any way to conditionally convert only the rows formatted as Date to General or the other way around? Thanks in advance.