(データベースから受け取った)パンダのデータフレームがコンソールに出力されるのは、が完全ととなり、となることです。pythonどのようにパンダのデータフレームに長いテキストを整列させるには?
私が持っている課題は、2列の長いテキストに関してです:LPQ_REASON & LPQ_RESOLUTION。以下の出力(print df
)から、両方のLPQ列が3ドット(...
)で終了しているため、テキストを読み取ることができません。これは私の初期設定にもかかわらず来る:
pd.set_option('display.max_rows', 1500)
pd.set_option('display.max_columns', 1500)
pd.set_option('display.width', 1000)
ので、コンソール上の結果は次のようになります。
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% (h... This Memo was issued with conjunction to our j... 3979
1 727889 61180482 2017-01-05 13:51:09 7891 The LPQ he collide will increase 15% (h... This Memo was issued on matching viloation for... 3979
私が(なんとか場合)を探してい最適解は、行全体を印刷しますあなたが望むよう
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