[Py027] pandas set_option

pandas默认打印出来的结果,行和列都有省略,

平时还好,打印的内容不会一下子将屏幕占满。

但是有时需要查看多列(行)内容时候,

这个设置就很烦人了

特别是我为了提升工作效率,专门买了34寸显示器的情况下

经常要df.iloc[:,:]设置打印的行列

可以通过set_option()设置display.max_rowsdisplay.max_columns来修改默认打印行列数,

一劳永逸

image

更多设置可以参考

https://www.yiibai.com/pandas/python_pandas_options_and_customization.html

你可能感兴趣的:([Py027] pandas set_option)