# 设置宽度
pd.set_option('display.width',100)
# 设置精确度
pd.set_option('precision',4)
# 设置显示所有列
pd.set_option('display.max_columns',None)
# 设置显示所有行
pd.set_option('display.max_rows',None)
参考:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.set_option.html
1391

被折叠的 条评论
为什么被折叠?



