我正在“多处理任务”中使用以下脚本:
Data_List = pool.map(self.Get_Series_Data, Series_Id_List)
方法“ self.Get_Series_Data”,生成数据框,“ pool.map”作为列表存储在Data_List中
[
Date Value Series_Id
0 1985-01-01 106.92593 CANEPUINDXM
1 1985-02-01 114.69938 CANEPUINDXM,
Date Value Series_Id
0 1995-01-01 192.91191 CHIEPUINDXM
1 1995-02-01 193.98785 CHIEPUINDXM,
Date Value Series_Id
0 1993-01-01 178.75275 DEEPUINDXM
1 1993-02-01 114.21303 DEEPUINDXM,
Date Value Series_Id
0 1987-01-01 57.10735 EUEPUINDXM
1 1987-02-01 49.24059 EUEPUINDXM,
Date Value Series_Id
0 1987-01-01 69.95834 FREUINDXM
1 1987-02-01 60.32132 FREUINDXM
]
我想将此列表项(包含数据框)转换为单个数据框
答案 0 :(得分:1)
我认为这应该有效:-
single_dataframe = pd.concat(data_list)