html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/690#issuecomment-1125434472,https://api.github.com/repos/pydata/xarray/issues/690,1125434472,IC_kwDOAMm_X85DFMRo,5589887,2022-05-12T21:22:37Z,2022-05-12T21:22:37Z,NONE,"This was very helpful, thanks. Minor tweak (maybe due to source change since previous comments in 2015?): ```python hourofyear = ((da.time.dt.dayofyear-1) * 24 + da.time.dt.hour).rename('hourofyear') result = da.groupby(hourofyear).mean('time') ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,124300184