在导入pandas的时候,不会报错,但是在使用一些绘图的时候一直报错。 重新pip install pandas 也没有效果。 后来发现,原因是:pandas的版本混合了, 解决办法:pip install --upgrade pandas