python dataframe中有一列的内容很长,在jupyter里没有办法完全显示,怎么办?

  统计/机器学习 Python    浏览次数:4793        分享
0

python dataframe中有一列的内容很长,在jupyter里没有办法完全显示,怎么办?

下图就是一列的内容没有显示完整,被省略号取代了


 

休二   2019-10-09 11:02



   1个回答 
1

设置max_colwidth每个列的最大宽度,如果取值是-1,那就是无限大。

import pandas as pd
pd.set_option('display.max_colwidth', -1)
SofaSofa数据科学社区DS面试题库 DS面经

简Cheng   2019-10-10 08:24



  相关讨论

Jupyter中InteractiveShell.ast_node_interactivity = "all"有什么用?

怎么在jupyter notebook设置全局的随机种子?

jupyter中怎么忽略所有的warning

怎么获得当前jupyter notebook的token(密码)?

怎么在jupyter notebook里查看python的版本?

在jupyter后台进程没有shutdown的notebook一直会占用内存吗?

刚接触机器学习,是用JupyterNotebook还是用JupyterLab?

Python的Jupyter Notebook环境下怎么制作一个动态显示的进度条?

在jupyter notebook里显示pandas的DataFrame如何隐藏index这列?

行数很多的pandas DataFrame如何在jupyter中完整显示?

  随便看看

随机森林会发生过拟合(overfitting)吗?

python直方图y轴显示占比,而不是绝对数值

tf.placeholder(tf.float32, shape=(None, 1024))中的None是什么意思

hyperparameter与parameter的区别?

怎么利用permutation importance来解释xgboost模型的特征?