df_net = pd.DataFrame(j) //// where j is the list of list of data frames
当我运行上述命令并从列表j中创建数据框时,我看到的数据框如下所示
此数据框的每个行还有365个条目和5列
答案 0 :(得分:0)
我找到问题的答案的方式是,首先我声明了数据帧嵌套列表的字典
dataframe_net = {i: j[i] for i in range(0, len(j))} ##### where j is the list
然后我从每个字典项目中制作数据框
df_net =pd.concat(
(i_value_df.assign(date=i_key) for i_key, i_value_df in dataframe_net .items()))
结果数据帧是嵌套列表j中数据帧的组合