I have a very large .csv file which got corrupted when I have opened it in MS Excel. The file has a datetime field (corresponding to a column in Excel/ Python dataframe) in "dd/mm/yyyy hh:mm:ss" format which seems to have got converted into "mm:ss.0:" format when I did some editing.
The datetime in my file is cyclic for every 37 rows. That means the first 37 rows correspond to today. The next 37 rows correspond to to yesterday, so on. I am not bothered about getting back the time part (hours or minutes or seconds). I need to get back at least the date.
Is there a way I can restore the datetime to original format or at least get the dates?
I searched for information on different forums on internet, but did not find any solution. Appreciate inputs.
The top few rows in the file earlier appear as (dummy data):
CN,NC,ND,Date
ccc,37.0,0.0,2022-06-03 08:47:12.167884,
fff,103221.0,316.0,2022-06-03 08:47:12.167884,
ggg,2273.0,0.0,2022-06-03 08:47:12.167884,
gfg,36189.0,41.0,2022-06-03 08:47:12.167884,
fkg,25130.0,38.0,2022-06-03 08:47:12.167884,
hgb,41297.0,81.0,2022-06-03 08:47:12.167884,
rgy,0.0,0.0,2022-06-03 08:47:12.167884,
kju,4188.0,78.0,2022-06-03 08:47:12.167884,
tgy,12522.0,17.0,2022-06-03 08:47:12.167884,
and now they appear as (dummy data):
CN,NC,ND,Date
ccc,37,0,47:12.2
fff,103221,316,47:12.2
ggg,2273,0,47:12.2
gfg,36189,41,47:12.2
fkg,25130,38,47:12.2
hgb,41297,81,47:12.2
rgy,0,0,47:12.2
kju,4188,78,47:12.2
tgy,12522,17,47:12.2