Pivot table

Yig‘ma jadvalMa’lumot

Misol

df.pivot_table(index="day", columns="category", values="revenue", aggfunc="sum")
Barcha atamalar