在最新的pycharm运行时失败,无法成功

C:\Users\79052\Anaconda3\python.exe "C:/Users/79052/OneDrive/Desktop/数据分析案例(1)/数据分析案例/chapter 9/data_new.py"
Traceback (most recent call last):
File "C:/Users/79052/OneDrive/Desktop/数据分析案例(1)/数据分析案例/chapter 9/data_new.py", line 5, in
from pandas.plotting import register_matplotlib_converters
ImportError: cannot import name 'register_matplotlib_converters'

你把import和from后面的两项颠倒一下试试。

将你pandas卸载重新装

register_matplotlib_converters是在python安装目录下吗

这篇文章:为什么使用 PyCharm 运行用例成功却无法退出? 也许有你想要的答案,你可以看看