df.unique and df.groupby差異在哪?
2019/09/24 06:44 下午
機器學習共學討論版
herohsu
觀看數:5
回答數:1
收藏數:0
day16
我對於dataFrame.unique和dataFrame.groupby有點不太了解這兩個的使用的時機
感覺兩個功能很像, 都是分組, 請問會互相取代來用嗎? 使用時機為何?
在多請教一問題
請問透過index.astype(str)的用意為何? 拿掉後好像沒有差異
px = age_groups.index.astype(str)