Resample dataframe

Viewed 39

When I do df1.resample('D') I expect having dates like this but I have the day with time. I also want to remove after the hour here is my code :

df1.resample('D').sum()

result

ts                          total 
2021-02-05 00:00:00+00:00   0
2021-02-06 00:00:00+00:00   507086
2021-02-07 00:00:00+00:00   73288

i want to remove this 00:00:00 and also +00:00 also i have the same issue with df.resample('H') i have with hours +00:00 thanks for helping me

0 Answers
Related