当前位置:   article > 正文

python二维数据读取对齐_python如何在pandas dataframe中很好地对齐长文本?

python怎么使二维数组和索引对齐

给定panda的数据帧(从数据库接收),我试图将结果输出到控制台,这样它将完整并且可读。在

我面临的挑战是关于2的长文本列:LPQ_原因&LPQ_分辨率(amp;L)。您将从下面的输出(print df)中注意到,两个LPQ列都以3个点(...)结尾,因此我无法阅读文本。尽管我的初始设置是:pd.set_option('display.max_rows', 1500)

pd.set_option('display.max_columns', 1500)

pd.set_option('display.width', 1000)

所以控制台上的结果如下:

^{pr2}$

我正在寻找的最佳解决方案(如果可行)是打印整行,以便:ID DIS_CASE_ID CREATION_DATE type_2 LPQ_REASON LPQ_RESOLUTION RESOLUTION_CODE

0 727990 61180481 2017-01-05 13:47:05 7891 The LPQ we know is shorto add is 25% (here This Memo was issued with conjunction to our 3979

comes the rest of the sentence. it might be analysis to foster a better bs when writing

long, or not, it might be short or whatever)

1 727889 61180482 2017-01-05 13:51:09 7891 The LPQ he collide will increase 15% yes and This Memo was issued on matching viloation for 3979

here I'm going to write the entire sentence who cares on what violation. just issued.

as if I really remember what was written. ha

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/294513?site
推荐阅读
相关标签
  

闽ICP备14008679号