python - Dataframe里字段过长被截取怎么能显示完整的数据
黄舟
黄舟 2017-04-18 10:05:10
0
2
793
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
刘奇

Thanks to kadakyo for the answer, I finally solved the problem using pd.set_option('max_colwidth', 200)

import pandas as pd
……
df = pd.DataFrame(data, columns=cols)
……
pd.set_option('max_colwidth', 200)
print(df)
Peter_Zhu

Try itpd.set_option('display.width', 200)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template