I have tried to resample my values to hour. However, since I have changed the format of the date in csv file because of automatic swapping of months and days with low numbers (2003-04-01 is suddenly 2003-01-04). Now the date format is fine (when showing the csv file in Python) but while using resample, the values appear in NaN values.
df = pd.read_csv(r'C:\Users\water_level.csv',parse_dates=[0],index_col=0,decimal=",", delimiter=';')
`hour_avg = df_2.resample('H').mean()`
Sample of my data: Raw data with time as index
Afterwards: even when time is datetime it shows 99% of the data as NaN values (one value per day is shown) Data with NaN values after resample per hours
When I used resample for day values, all values are back. So it seems there is a problem with the Time. When I use the format at the beginning, the error "The format doesn't fit" comes up. I tried a different way before (not sure what was different) but resample worked per hour.
What do I need to change to be able to use resample for hour again?