Python xgboost appears FutureWarning: pandas.Int64Index is deprecated

question:

Python uses xgboost to appear

FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.

from pandas import MultiIndex, Int64Index

solve:

The version problem has been fixed in xgboost version 1.6.0, just update xgboost:

pip install --upgrade xgboost

reference:

https://github.com/dmlc/xgboost/issues/8123
Warning: Pandas deprecation, please fix this · Issue #7894 · dmlc/xgboost · GitHub
 

Guess you like

Origin blog.csdn.net/weixin_51723388/article/details/126871052