在Pycharm控制台中打印并打印完整句子时如何删除...?

时间:2018-09-19 01:17:54

标签: python pandas numpy dataframe pycharm

下面显示的是pycharm中的输出控制台。我想显示一个长句子打印出来,但这给了我...

UIButton

这是我用来打印的代码:

                                             notes
0  {'Notes': "85 Male Malay  NKDA walking stick a...
1  {'Notes': '85yo chinese man nkda PHX 1) Hypert...

1 个答案:

答案 0 :(得分:0)

IIUC使用pd.options

pd.options.display.max_colwidth = 1000
pd.Series('this is very long long long long long long long long long string')
Out[39]: 
0    this is very long long long long long long long long long string
dtype: object

更新

pd.Series([{'LOL!':'this is very long long long long long long long long long stridddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddng','LOL2':'this is very long long long long long long long long long string'}])
Out[47]: 
0    {'LOL2': 'this is very long long long long long long long long long string', 'LOL!': 'this is very long long long long long long long long long stridddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddng'}
dtype: object