79510216

Date: 2025-03-14 21:07:54
Score: 1
Natty:
Report link

inspired by the answer of @mcskinner, you can use .resample() in place of lambda function.

y = y.groupby('user').resample('H', level = 'datehour').y
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @mcskinner
  • Low reputation (1):
Posted by: ktp89