I have a large CSV file with a TIME column. It is written as 1318, and I would like to use Python / Pandas to convert the data as 13:18 and see it as time instead of int64.
I tried something like this, but this is not what I want:
df['TIME'] = pd.to_datetime(df['TIME'])
Because I get this:
1970-01-01 00:00:00.000001318
1970-01-01 00:00:00.000001041
1970-01-01 00:00:00.000000853
Any ideas?
source
share