pivot_multi aggfunc

PHOTO EMBED

Thu May 26 2022 14:12:25 GMT+0000 (UTC)

Saved by @vivienfeng11

ls_p=pd.pivot_table(lastsummer,values=['revenue','reservation_id'],index=['account_id'],
               aggfunc={'revenue':np.sum,
                        'reservation_id':'nunique'})
content_copyCOPY

http://localhost:8888/notebooks/Untitled14.ipynb?kernel_name