人生最曼妙的风景,竟是内心的淡定与从容!
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)
Try itpd.set_option('display.width', 200)
pd.set_option('display.width', 200)
Thanks to kadakyo for the answer, I finally solved the problem using pd.set_option('max_colwidth', 200)
Try it
pd.set_option('display.width', 200)