python axessubplot_python – Pandas数据帧错误:matplotlib.axes._subplots.AxesSubplot

import pandas as pd

import matplotlib.pyplot as plt

file = ‘d:\a\pandas\test.xlsx’

data = pd.ExcelFile(file)

df1 = data.parse(‘Link’)

df2 = df1[[‘dataFor’, ‘total’]]

df2

收益:

python axessubplot_python – Pandas数据帧错误:matplotlib.axes._subplots.AxesSubplot

print (type(df2))

告诉我

class ‘pandas.core.frame.DataFrame’

df2.plot(kind=’line’)

回报

matplotlib.axes._subplots.AxesSubplot at 0xe4241d0

可能是环境吗?

Jupyter notebook > Help > About

The version of the notebook server is 4.2.3 and is running on:

Python 3.5.2 |Anaconda 4.2.0 (32-bit)| (default, Jul 5 2016, 11:45:57) [MSC v.1900 32 bit (Intel)]

故障在哪里? matplotlib仍然是标准还是初学者应该选择Bokeh还是两者兼而有之?

Original: https://blog.csdn.net/weixin_33924688/article/details/113960776
Author: 不期风吟
Title: python axessubplot_python – Pandas数据帧错误:matplotlib.axes._subplots.AxesSubplot

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/768220/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球