plotfly袖扣不会产生p

2024-06-26 06:20:57 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有人能给我一个提示,在plotly/cufflinks离线的情况下绘制熊猫数据帧(Jupyter lab 3.7)?当我运行代码时,没有显示任何绘图,没有错误或任何东西。。只有一个空白单元格

#importing plotly and cufflinks in offline mode
import cufflinks as cf
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
cf.go_offline()
cf.set_config_file(offline=False, world_readable=True)
init_notebook_mode(connected=True)

allDat.iplot()

这是我称之为allDat的pandas数据帧的屏幕截图,我正试图对所有内容进行简单的线条绘制

enter image description here


Tags: 数据importtrueinitmode绘制plotlycf