0

I'm new to python, an am working on support scripts to help me import data from various sources. within the df are several years of daily values. I would like to split & sort the daily_cfs column into multiple separate columns based on the water_year value. Would this require groupby or would a pivot table be better?

in short I want to turn df:

original df

into another df resembling this:

excel file resembled finished df

mozway
  • 81,317
  • 8
  • 19
  • 49
dls2235
  • 1
  • 1

0 Answers0