使用pycharm设置控制台不换行的操作方法
pandas进行打印,控制台的显示默认是换行的在pycharm中的控制台也没有办法设置
可加入如下代码打印,结果不换行,看着数据更加直观
import pandas as pd import numpy as np # pd.set_option('display.height', 1000) # pd.set_option('display.max_rows', 500) # pd.set_option('display.max_columns', 500) pd.set_option('display.width', 1000) titanic_survival = pd.read_csv("titanic_train.csv") print(titanic_survival)
相关推荐
unit00 2020-06-07
NANGEBOKE 2020-11-23
wuguangbin0 2020-11-17
shuhaojie 2020-11-17
skyplay0 2020-11-17
BigYellow 2020-11-16
shuhaojie 2020-08-16
NANGEBOKE 2020-08-15
mmwalker 2020-08-11
wuguangbin0 2020-07-18
vshacker 2020-07-05
jameslaughing 2020-07-04
jameslaughing 2020-07-04
maoyongfan 2020-06-28
hanxia 2020-06-27