[英]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.我已将 csv 文件导入 pandas dataframe 文件,其中包含一些股票价格数据。 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.
我正在尝试打印终端上的所有行,但 VSCode 不允许我一次看到超过 10 行。 I have pasted a screenshot below to demonstrate what I mean.
我在下面粘贴了一个屏幕截图来说明我的意思。
VSCode Terminal Window: VSCode 端子 Window:
I have even tried adding .head(100)
after the dataframe name to view fewer lines but it does the same thing;我什至尝试在 dataframe 名称之后添加
.head(100)
以查看更少的行,但它的作用相同; 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:
我已经尝试了在 Google 上可以找到的所有可能的解决方案,其中大多数似乎都集中在我在以下屏幕截图中显示的设置上:
scrollback buffer setting:回滚缓冲区设置:
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,先感谢您,
It is not related to VSCode but to pandas DataFrame itself.它与VSCode 无关,但与pandas DataFrame本身有关。 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.在打印 1000 是您希望看到的行数之前,您会看到打印了那么多行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.