问题:
python使用xgboost 出现
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
解决:
版本问题,在1.6.0版本的xgboost中已被修复,更新xgboost即可:
pip install --upgrade xgboost
参考:
https://github.com/dmlc/xgboost/issues/8123
Warning: Pandas deprecation, please fix this · Issue #7894 · dmlc/xgboost · GitHub