Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

group by weekhour

df.groupby((df.index.dayofweek) * 24 + (df.index.hour)).mean().rename_axis('HourOfWeek')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group #weekhour
ADD COMMENT
Topic
Name
8+1 =