【发布时间】:2019-08-20 16:04:50
【问题描述】:
当我尝试绘制 excel 文件时,图表没有显示 X 轴。 有人可以帮忙吗?
提前致谢
x=data['hour_formatted']
y=data['01_aug_18']
plt.plot (x, y)
plt.show()
【问题讨论】:
-
什么意思,没有显示X轴?
-
您的错误信息是什么?它没有“找到”定义的列/行X吗?还是 plt.show() 中的结果为空?如果您收到 X 定义 (hour_formatted) 的错误,那么您可能拼写错误。如果 plt.show() 为空,则该字段中没有任何数据。
-
感谢您的回复。我已附上图片
-
@ItamarMushkin 我附上了我的问题的照片
标签: python-3.x jupyter-notebook