'How to stop VSCode from truncating Python output to console? [duplicate]
I've seen several posts here all saying "Go go Python › Data Science: Text Output Limit" but that setting does not exist in my VSCode or I'm too dumb to find it.
Has something changed?
How do I make VSCode diplay the full .csv I've imported?
It's [232 rows x 32 columns] but VSCode is only showing 10 rows - I get 0-4 and 227-231, everything in the middle is missing.
The number of columns changes depending on how wide the console window is.
edit more info: I am using pandas and python 3.10, MS Python extension, and outputting to a vscode termial window.
Solution 1:[1]
It's not related to the VSCode, it's pandas related. Like @Shayan provided, you can configure pandas like this:
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
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 | Steven-MSFT |
