pandas中关于DataFrame行,列显示不完全(省略)的解决办法

显示所有列

pd.set_option('display.max_columns', None)

显示所有行

pd.set_option('display.max_rows', None)

设置value的显示长度为100,默认为50

pd.set_option('max_colwidth',100)

类似的,对于numpy array print后不能完全显示输入下面代码:
ipmort numpy as np
np.set_printoptions(threshold = np.inf)

若想不以科学计数显示:

np.set_printoptions(suppress = True)

原文地址:https://www.cnblogs.com/lpdeboke/p/13298533.html