pivot_table drop lever

PHOTO EMBED

Thu May 26 2022 14:48:10 GMT+0000 (UTC)

Saved by @vivienfeng11 #undefined

df_pivot=df.pivot_table(index=['date'],columns=['trip_type'],values=['weekday','weekend'],aggfunc=np.sum)

df_pivot.columns=df_pivot.columns.droplevel(0)
content_copyCOPY

http://localhost:8888/notebooks/Z4B revenue pacing 2022-02-21.ipynb