The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead from pandas import np
这种原因是因为我还在用from pandas import np
看来是要升级下了
pip install --upgrade pandas
之后根据控制台返回的提示作相应的更改,我这里是提示import numpy instead from pandas import np……所以注释掉那句,换位import numpy