简体   繁体   English

Pandas:从大型数据框中获取单个熊猫系列列表的最快方法是什么?

[英]Pandas : What is the fastest way to get a list of single panda series from a large dataframe?

How the questions explain, i search for a very fast split method to get a list of all panda series from a panda dataframe to multiprocessing them.问题如何解释,我搜索了一种非常快速的拆分方法,以从熊猫数据框中获取所有熊猫系列的列表,以对它们进行多重处理。 hsplit from numpy split it to single dataframes. hsplit from numpy 将其拆分为单个数据帧。 Is there a method im not aware of?有没有我不知道的方法?

If you're trying to iterate through all the columns df.iloc[index] or df.loc[index] is probably the best method.如果您尝试遍历所有列df.iloc[index]df.loc[index]可能是最好的方法。 However, I don't see how this would be that important.但是,我不明白这会有多么重要。 Pandas is already exceptionally efficient for operations and its hard to beat the core dataframe indexer speed. Pandas 的操作效率已经非常高,而且它的核心数据帧索引器速度难以超越。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM