0

Was wondering if there's a way to prevent python from printing ..... when going over long lists

https://i.stack.imgur.com/epbHc.png

This script will eventually save output to a text file and the text insides also comes out the same way as the output.

I am using Jupyter notebook as a walk-around but would like to get to the root of this to prevent next time

Also found something using

pd.Series to read the list and .set_options to set column width but it doesn't work when trying to read from a file directly (read_excel)

Any similiar method I could use here?

  • Whoever closed this didn't look closely enough. The question pointed to was about **wide** series and a not **wide** dataframe. OP, should see [here](https://discourse.jupyter.org/t/how-to-stop-line-breaks-in-output-of-pandas-dataframes/13875/2?u=fomightez) and try controlling how many columns show. Plus, in the future OP describe situation better and include in text the code you used to get the output you show, at the very least. More information you can provide will result in better help, and so even a few more lines before that is better. – Wayne Apr 23 '22 at 17:43

0 Answers0