python输出列/行内容显示不全

问题:数据显示不全
python输出列/行内容显示不全_第1张图片
解决方法:使用pandas加上以下代码即可

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

效果如下:python输出列/行内容显示不全_第2张图片

你可能感兴趣的:(python,pandas)