jupyter中pandas与numpy显示全部数据
【代码】jupyter中pandas与numpy显示全部数据。
·
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)
更多推荐

所有评论(0)