显示所有列:
pd.set_option('display.max_columns', None)
显示1000列:
pd.set_option(‘max_columns’,1000)
显示所有行:
pd.set_option('display.max_rows', None)
显示1000行:
pd.set_option(‘max_row’,1000)
设置value的显示长度为100,默认为50:
pd.set_option('max_colwidth',100)
设置浮点数:
pd.set_option(‘display.float_format’, lambda x: ‘%.5f’ % x)
Python学习网,有大量免费的,欢迎大家学习!
Copyright © 2019- huatuowenda.com 版权所有 湘ICP备2023022495号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务