0

I want to resample a df from daily measurements to yearly measurements.

I have set a DateTime as the index and tried to resample, but the av_df_130302A df doens't appear in my Variable exploreer and nothing happens. I am not sure what I am doing wrong.

df_130302A = df_130302A.set_index('DateTime') av_df_130302A = df_130302A.resample('Y').sum

This is a picture of the console when I run the code
enter image description here

emma_kth
  • 25
  • 2
  • 1
    With no error message and no code that we can test its hard for anyone to help. Can you prepare a small reproducible example of the problem with a small set of data? – Bill Jun 19 '22 at 23:59
  • 1
    Having said that, it looks like you forgot the parenthesis on your sum method. It should be `.sum()` – Bill Jun 20 '22 at 00:03
  • And that was literally my problem - that's hilarious! Thanks so much, I should have noticed that :) – emma_kth Jun 20 '22 at 00:06
  • Something as trivial as that probably isn't worth having a question for. You may want to delete it. – Bill Jun 20 '22 at 01:18

0 Answers0