Home > Net >  How can I put my columns in the same line?
How can I put my columns in the same line?

Time:04-01

Im starting with python, Jupyterlab and pandas. So as you can see in the image, I created some new columns different from the imported from my csv files, but they are displayed like this, I want that all my columns are align with each other, to keep everything in order.

Thanks for any help

I dont really know a workaround for this problem. I also dont know know how I could find a direct answer in Google.

CodePudding user response:

Try this and see if it works for you:

print(df.to_string())

CodePudding user response:

you can also use visual studio code which is more convenient or `

pd.set_option('display.max_columns', None)
  • Related