当前位置:网站首页>Dataframe print 省略号问题
Dataframe print 省略号问题
2022-07-25 10:27:00 【fatfatmomo】
通过print输出Dataframe中的数据,当Dataframe行数很多时,中间部分显示省略号.
通过查看pandas的官方文档可知,pandas.set_option() 可以设置pandas相关的参数,从而改变默认参数。 打印pandas数据时,默认是输出100行,多的话中间数据会输出省略号。
在代码中添加以下两行代码,可以改变显示宽度和行数,这样就能完整地查看数据了
pd.set_option('display.width', 1000) # 设置字符显示宽度
pd.set_option('display.max_rows', None) # 设置显示最大行
pd.set_option('display.max_columns', None) # 设置显示最大行
边栏推荐
- 2021 scenery written examination summary
- Learn NLP with Transformer (Chapter 5)
- Gan, why '𠮷 𠮷'.Length== 3 ??
- 代码的表示学习:CodeBERT及其他相关模型介绍
- 上周热点回顾(7.18-7.24)
- Visual thematic map of American airport go style: ArcGIS Pro version
- 企业实践开源的动机
- 从开源的视角,解析SAP经典ERP “三十年不用变”的架构设计
- C3d model pytorch source code sentence by sentence analysis (II)
- SQL语言(六)
猜你喜欢

Reinforcement Learning 强化学习(三)
![[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context](/img/3e/2cc3ff7e6e45ba4fcf3a0f5c2bf478.png)
[flask advanced] solve the classic error reporting of flask by combining the source code: working outside of application context

Learn NLP with Transformer (Chapter 5)

A troubleshooting record of DirectShow playback problems

JS hash table 01

SQL语言(三)

HCIP (01)

Esp32c3 based on the example tutorial of esp32 Rainmaker development under Arduino framework

UE4.26源码版学习广域网独立服务器时遇到的客户端运行黑屏问题

Hcip experiment (02)
随机推荐
一文读懂小程序的生命周期和路由跳转
JS bidirectional linked list 02
HCIP (01)
Google Earth engine -- Statistics on the frequency of land classification year by year
Learn NLP with Transformer (Chapter 2)
The most detailed MySQL index analysis (mind map is attached at the end of the article)
[information system project manager] thought map series essence summary
Reinforcement learning (III)
【云享新鲜】社区周刊·Vol.72- 2022华为开发者大赛中国区首场开幕式启动;华为云KooMessage火热公测中…
The University of Gottingen proposed clipseg: a model that can perform three segmentation tasks simultaneously using text and image prompts
Visual thematic map of American airport go style: ArcGIS Pro version
Learn NLP with Transformer (Chapter 4)
Dataset and dataloader data loading
【flask高级】结合源码解决flask经典报错:Working outside of application context
Flask框架——Flask-WTF表单:文件上传、验证码
SQL语言(一)
SQL语言(四)
【Servlet】请求的解析
【域泛化】2022 IJCAI领域泛化教程报告
HCIA experiment (07) comprehensive experiment