E
E
Eva052015-11-07 17:28:04
Python
Eva05, 2015-11-07 17:28:04

How to set DataFrame width in Ipython console?

There is a csv file upload. There are 12 product evaluation criteria in the file (tobish 12 columns).
Question: How can I make sure that all 12 columns fit in one line and not 4?
The readability of information is much improved and just more familiar.
8f80437b861f40f999488a426d12033f.png
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2015-11-07
@nirvimel

I understand that you are using pandas (not specified in the tags). Then try this:

import pandas
pandas.set_option('display.max_columns', 50)
pandas.set_option('display.width', 1000)

More details here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question