FutureWarning: pandas.Int64Index is deprecated and will be removed ... in a future version. 解决方法
调用 XGBoost 时遇到如下 FutureWarning:
compat.py:36: 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, Int64Indexdata.py:267: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.elif isinstance(data.columns, (pd.Int64Index, pd.RangeIndex)):
我的解决方法:
pip uninstall pandas
pip install pandas==1.3
其他解决方案说降低 xgboost 的版本,或者先导入 MultiIndex, Int16Dtype,如下所示:
import pandas as pd
from pandas import MultiIndex, Int16Dtype
import xgboost as xgb
- stackoverflow | pandas.Int64Index fix for FutureWarning
- 编程技术网 | Pandas.Int64Index被弃用:pandas.Int64Index is deprecated
FutureWarning: pandas.Int64Index is deprecated and will be removed ... in a future version. 解决方法相关推荐
- currentlyFocusedField is deprecated and will be removed in a future release解决方法记录
参考https://github.com/aksonov/react-native-router-flux/issues/3691 This issue is related to transitiv ...
- Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version.
2019独角兽企业重金招聘Python工程师标准>>> PHP 接口,使用 ajax post方式提交数据的时候报错: Automatically populating $HTTP_ ...
- DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.
DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version. ...
- WARNING: --master-data is deprecated and will be removed in a future version
Mysql 版本:/usr/local/mysql/bin/mysql Ver 8.0.26 for Linux on x86_64 (MySQL Community Server - GPL) 报错 ...
- 【k8s】kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl
登录一个已有的pod,执行ping 本文是之前文章的姐妹篇 kk exec -it nginx-deploy-5878ddd45b-nzsdv – sh 命令换了 kubectl exec [POD] ...
- 【解决两个警告】Model.fit_generator` is deprecated and will be removed in a future version. Please use `Mode
在训练 经典卷积神经网络VGG时,因为版本问题,报了警告,下面来解决警告. 其实警告,大多来自前后版本的问题,可能你使用的这个版本里面对于一个方法是这个要求,下一个版本或者更新的版本,对于这个方法就是 ...
- using a dict on a Series for aggregation is deprecated and will be removed in a future version
python的pandas中,在统计聚合的时候,版本问题,提示不支持字典格式了. 比如,下面代码这样改就可以了. words_stat = words_df.groupby(by=['segment' ...
- 出现 DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 的解决方法
目录 1. 问题所示 2. 原理分析 3. 解决方法 1. 问题所示 使用plt代码模块的时候 问题如下: /home/kkjz/anaconda3/envs/py17/lib/python3.7/s ...
- PHP 5.6 中 Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future
在使用数组转换为XML 时,出现这种错误 Automatically populating $HTTPRAWPOSTDATA is deprecated and will be removed in ...
最新文章
- android imageview 的常用属性,android imageview scaletype属性
- BZOJ2876 [Noi2012]骑行川藏 【拉格朗日乘数法】
- .NET 6新特性试用 | Controller支持IAsyncDisposable
- sql server charindex函数和patindex函数详解(转)
- 反转一个单链表,分别以迭代和递归的形式来实现
- Chapter1-7_Speech_Recognition(Language Modeling)
- OpenCV 2 学习笔记(9): 定义ROI(regions of interest):给图像加入水印
- PHP vscode+XDebug 远程断点调试服务器上的代码
- 多商铺购物车查询 排除重复商家
- ES索引管理工具curator安装
- 漫画:如何给女朋友解释为什么200M宽带,打王者荣耀还是会有460的延迟?
- Linux系统编程(18)——正则表达式实用举例
- python selenium初入
- mysql实现pr曲线_如何画PR curve (PR曲线)基于COCO格式数据集 在maskrcnn_benchmark中
- xxampp 配置php_MAC下使用XMAPP配置php环境
- 学习linux方向,学习linux方向
- 友盟php接入统计,Android应用中添加友盟统计_PHP教程
- 八字起大运php代码,八字起大运方法有几种
- Vmware安装Ubuntu16.0.4出现Assuming drive cache: write through和1920X1080分辨率调节问题
- Unity TouchScripts实例 - 判断在物体上滑动
热门文章
- 【web素材】06—20款企业网站模板,帮助你快速学习构建企业项目
- 古诗欣赏:君王城上竖降旗,妾在深宫那得知?十四万人齐解甲,更无一个是男儿!
- 数仓建模-增量表及全量表
- 分享五款用来就不舍得删的app,个个功能强大,确定不来看看嘛
- python2筑基-(封装/继承/多态/类属性)
- Failed to find target with hash string 'android-26' in
- THINKPHP5.1使用富文本编辑器wangEditor
- 谈谈SOA架构和微服务,以及两者的区别区别
- cobol_关于COBOL的简短介绍
- 本地打开文件 % % 是什么意思