[英]How to print all the columns in single line from dataframe on Jenkins console?
I have created a data frame which contains lot of columns:
for eg.
col1 col2 col3 col4 col4 col5 col6 col7
and each row contains plenty of data in it.
I tried this:
pd.set_option('expand_frame_repr', False) pd.set_option('expand_frame_repr', False)
pd.set_option('display.max_rows', None) pd.set_option('display.max_rows', 无)
pd.set_option('display.max_colwidth', 200) pd.set_option('display.max_colwidth', 200)
and in output I am getting:
col1 col2 col3 col4
col5 col6
row1 row1 row1 row1
row1 row1..
But I want all this to printed on single line in Jenkins console.
col1 col2 col3 col4 col5 col6
row1 ro1 row1 row1 row1 row1
also I see some of the rows which have too much of that comes like row.....
how can print the full data.
you could use to_string你可以使用 to_string
print(data_frame[row:row].to_string())
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.