# List of sub dataframes
list_df = []
for i in range(20):
list_df.append(df.iloc[i*28260//20:(i+1)*28260//20])
print("Number of sub_dataframes: ", len(list_df))
# Number of sub_dataframes: 20
print("Size of each sub_dataframe: ", list_df[0].shape)
# Size of each sub_dataframe: (1413, 25)
如果要将所有数据帧保存在dict中,有一种方法:
在列表中:
相关问题 更多 >
编程相关推荐