【发布时间】:2021-10-10 04:29:04
【问题描述】:
我在 python 中编写了 multitprocessing 程序。对于每个进程,我的程序返回一个dataframe。最后,我想将concatenate 那些数据帧合并到一个数据帧中。我该怎么做?
代码示例:
def main():
with Pool() as pool:
result_df = pool.starmap(search, zip(a, b))
if __name__ == '__main__':
# freeze_support()
main()
【问题讨论】:
-
这能回答你的问题吗? stackoverflow.com/questions/44621116/…
标签: python pandas windows dataframe multiprocessing