0
dt_corr = dt[["date","mean_press", "maxwind", "sun_dur","mean_rel_hum", "mean_temp", "mean_cloud", "max_temp_2m", ]].dropna()
dt_corr["year"] = dt_corr.date.dt.year
dt_corr.set_index("date")
dt_corr.index = pd.to_datetime(dt_corr.index, format='%Y/%m-%d')    #####why appears format green here ????? i don't get it
dt_corr

The index in any output is always like this: 1970-01-01 00:00:00.000033417 ##last for digits differ
I cannot coerce my index to datetime, to finally reasample my data and plot it. The format parameter doesn't change anything and appears in green in my codeline. What can I do?

0 Answers0