AttributeError: module ‘pandas‘ has no attribute ‘tslib‘

        在学习Python中的个ggplot绘图系统的时候出现AttributeError: module 'pandas' has no attribute 'tslib'。

解决办法:

        1.找到电脑中Python的安装位置,\Python\Python310\Lib\site-packages\ggplot,找到utils.py文件

        

AttributeError: module ‘pandas‘ has no attribute ‘tslib‘_第1张图片

        2.记事本打开,将其中的pd.tslib.Timestamp,修改为pd.Timestamp。

AttributeError: module ‘pandas‘ has no attribute ‘tslib‘_第2张图片 

         3.\Python\Python310\Lib\site-packages\ggplot\stats,找到smoothers.py文件

AttributeError: module ‘pandas‘ has no attribute ‘tslib‘_第3张图片

         6.记事本打开,将其中的 from pandas.lib import Timestamp修改为from pandas import Timestamp , 将其中的pd.tslib.Timestamp 修改为 pd.Timestamp。

AttributeError: module ‘pandas‘ has no attribute ‘tslib‘_第4张图片

 

 

 

你可能感兴趣的:(pandas,python,数据分析)