给定下面的DataFrame,按年份绘制用户访问权限。最好使用x轴为年份,y轴为该年访问次数的折线图。数据框:In: print dfOut: 0 2016-10-01 1 2015-11-05 2 2017-12-07 3 2016-08-09 4 2015-11-22 5 2016-12-13 6 2017-03-25 7 2016-09-11 8 2017-04-12 9 2016-08-29 10 2015-11-04 Name: date, dtype: datetime64[ns]导入的模块:matplotlib,pandas和seaborn:import pandas as pdimport matplotlib.pyplot as pltimport seaborn as sns
添加回答
举报
0/150
提交
取消