Python jupyter按顺序打印绘图和数据帧,用于循环
我想按jupyter笔记本中的代码顺序打印数据帧和绘图:Python jupyter按顺序打印绘图和数据帧,用于循环,python,pandas,matplotlib,jupyter-notebook,jupyter-lab,Python,Pandas,Matplotlib,Jupyter Notebook,Jupyter Lab,我想按jupyter笔记本中的代码顺序打印数据帧和绘图: df 密谋 df 密谋 目前,它们打印为: df df 密谋 密谋 在绘图后强制plt.显示: for i in range(2): display(df) df.plot() plt.show() for i in range(2): display(df) df.plot() plt.show()
- df
- 密谋
- df
- 密谋
- df
- df
- 密谋
- 密谋
在绘图后强制
plt.显示
:
for i in range(2):
display(df)
df.plot()
plt.show()
for i in range(2):
display(df)
df.plot()
plt.show()