我的數(shù)據(jù)框看起來(lái)像這樣:# Pivoting the DF
df = df.pivot(index='Date',columns='Track Name',values='Streams')旋轉(zhuǎn)后,我無(wú)法訪問(wèn)索引鍵。數(shù)據(jù)框看起來(lái)像這樣:誰(shuí)能告訴我我做錯(cuò)了什么?我是 Pandas 的新手,歡迎參考有用的資源。
如何使用 Pandas 在 Pivot 之后訪問(wèn)索引
ibeautiful
2023-05-09 16:12:07