'How can I put my columns in the same line? [duplicate]
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.
Solution 1:[1]
Try this and see if it works for you:
print(df.to_string())
Solution 2:[2]
you can also use visual studio code which is more convenient or `
pd.set_option('display.max_columns', None)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | le_camerone |
| Solution 2 | Nullable |

