The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy
Thepandas.npmoduleisdeprecatedandwillberemovedfrompandasinafutureversion.Importnumpydirectlyinsteadfrompandasimportnp这种原因是因为我还在用frompandasimportnp看来是要升级下了