Python DataFrame 设置输出不显示index(索引)值的方法
作者:不二科技君 时间:2022-01-13 20:02:38
在输出代码行中,加入“index=False”如下:
m_pred_survived.to_csv("clasified.csv",index=False)
来源:https://blog.csdn.net/sinat_34615726/article/details/62891393
标签:Python,DataFrame,index
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
在python中利用numpy求解多项式以及多项式拟合的方法
2021-05-14 03:01:24
keras实现多种分类网络的方式
2023-07-10 13:37:49
如何使用PyTorch实现自由的数据读取
2022-06-16 12:28:16
![](https://img.aspxhome.com/file/2023/0/72120_0s.png)
python用什么编辑器进行项目开发
2021-04-17 19:25:20
python烟花效果的代码实例
2022-09-01 05:42:41
![](https://img.aspxhome.com/file/2023/6/89096_0s.gif)
Python Collatz序列实现过程解析
2023-01-11 18:26:23
对跨多个表格的数据组合时需要用到的SQL
2009-01-06 11:18:00
my.ini(my.cnf)与mysql优化指南
2009-12-15 16:20:00
![](https://img.aspxhome.com/file/UploadPic/200912/200912152219997s.gif)
Python利用networkx画图绘制Les Misérables人物关系
2021-03-31 07:41:54
![](https://img.aspxhome.com/file/2023/1/64671_0s.png)
python使用reportlab实现图片转换成pdf的方法
2021-09-24 22:32:26
使用Python神器对付12306变态验证码
2021-01-19 00:14:02
![](https://img.aspxhome.com/file/2023/5/118345_0s.gif)
关于阿里云oss获取sts凭证 app直传 python的实例
2021-04-29 14:16:11
重写django的model下的objects模型管理器方式
2023-04-24 15:10:14
Python生成随机MAC地址
2023-04-09 18:05:57
使用python库xlsxwriter库来输出各种xlsx文件的示例
2022-04-27 14:50:30
设计师挖掘用户需求浅谈
2009-10-25 13:24:00
基于python3.7利用Motor来异步读写Mongodb提高效率(推荐)
2022-12-20 08:44:05
![](https://img.aspxhome.com/file/2023/4/80474_0s.png)
Linux 自动备份oracle数据库详解
2023-07-14 08:11:41
python编写学生成绩管理系统的逻辑结构及功能实现
2021-08-23 18:32:21
![](https://img.aspxhome.com/file/2023/6/99106_0s.png)
正确认识MySQL对服务器端光标的限制
2008-12-03 15:52:00