News for hackers. Stuff that matters.
Re:Lesser-known Pandas tricks (2019) by bobbylarrybobby on Wednesday March 11, 2020 @07:50PM (#22552058)
I dunno about elegant... seems like pandas is missing a reverse parameter in expanding. Surely this would be preferable:

df[col].expanding(reverse=True).mean()

There are no comments on this comment yet.