【发布时间】:2021-03-04 03:36:53
【问题描述】:
我想从字典中绘制 16 个数据帧,但我尝试使用 for 循环,但我不知道如何使用我的 DictDataFrame 完成我的代码:
DataFrameDict.keys() :
dict_keys([1, 10, 20, 30, 40, 47, 100, 15, 25, 35, 45, 50, 5, 105, 55, 0])
DataFrameDict[0]:
date_time id value Duration_datetime Duration(Min)
所以我想从字典中为每个数据帧的每个列 Duration(Min) 子图,但我不知道如何处理:DataFrameDict[key]['Duration(Min)']
fig = plt.figure()
fig, ax = plt.subplots(nrows=4, ncols=4)
for i in range(4):
for j in range(4):
subplot = ax[i, j]
plt.show()
【问题讨论】:
标签: python pandas matplotlib