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

import pandas as pd import matplotlib.pyplot as plt file = 'd:\\a\\pandas\\test

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

收益:

ZhtvM.png

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还是两者兼而有之?