numpy显示全部数据

import numpy as np  
np.set_printoptions(threshold=np.inf)  
np.set_printoptions(threshold='nan')
其中threshold表示: 输出的数组数目

pandas显示全部数据

pd.set_option('display.max_columns', None) # 显示完整的列
pd.set_option('display.max_rows', None) # 显示完整的行
pd.set_option('display.expand_frame_repr', False) # 设置不折叠数据
pd.set_option('display.max_colwidth', 100)
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐