Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode terminal does not show all the rows

I have imported a csv file into a pandas dataframe and it has some stock price data on it. I am trying to print all the rows on the terminal but VSCode does not let me see more than 10 lines at a time. I have pasted a screenshot below to demonstrate what I mean.

VSCode Terminal Window:

enter image description here

I have even tried adding .head(100) after the dataframe name to view fewer lines but it does the same thing; it just shows the lines at the beginning and at the end and puts three dots in between. I have tried all the possible solutions I could find on Google, most of them seem to be focusing around the setting I have shown on the following screenshot:

scrollback buffer setting:

enter image description here

However, changing that setting does not do anything for me. I anyone knows how to fix this issue, I will greatly appreciate it.

Thank you in advance,


1 Answers

It is not related to VSCode but to pandas DataFrame itself. If you set:

 pd.set_option("display.max_rows", 1000)

before printing where 1000 is the number of rows you would like to see, you will see that much rows printed.

like image 163
hcsaral Avatar answered Oct 25 '25 11:10

hcsaral



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!