Pandas: df.groupby() is too slow for big data set. Any alternatives methods?
问题 df = df.groupby(df.index).sum() I have a dataframe with 3.8 million rows (single column), and I'm trying to group them by index. But it takes forever to finish the computation. Are there any alternative ways to deal with a very large data set? Thanks in advance!!!! I'm writing in Python. The data looks like as below. The index is the customer ID. I want to group the qty_liter by the Index . df = df.groupby(df.index).sum() But this line of code is taking toooo much time..... the info about