问题原因:是包pandas2.1.0的问题,可能是和pycharm2022.3.3或python3.12不兼容,或pandas2.1.0过时或错误。 解决方案:下载pycharm默认选择的最新pandas2.2.2