You are viewing a single comment's thread from:

RE: LeoThread 2025-06-26 01:19

in LeoFinance3 months ago

#python's #panda aggregation like cumulative #sum isn't depending on the sorting 😵‍💫 This for reversing it

df['cumulativeHive'] = df.loc[::-1, 'hive'].cumsum()[::-1]

#coding