大數據集Hierarchical Indexing優化方案

1. 對比 數據量:(33694369, 3)html The bad way 優化以前:30min跑不出來。python prices = prices.set_index(["id", "date"])[["sell_price"]].unstack(level=-1).fillna(False) The Better Way: Pandas MultiIndex 優化以後:MultiInde
相關文章
相關標籤/搜索