对于 numpy 里面的 array:

import numpy as np
np.set_printoptions(threshold=np.inf)

对于 pandas 里面的 DataFrame

import pandas as pd
#显示所有列
pd.set_option('display.max_columns', None)

#显示所有行
pd.set_option('display.max_rows', None)

#设置value的显示长度为100,默认为50
pd.set_option('max_colwidth',100)
Logo

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

更多推荐