[英]How do I print out every value of data I have inside my csv file in Pandas using Jupyter notebook
I have a large pokemon data that is saved as a csv file.我有一个保存为 csv 文件的大型口袋妖怪数据。 I just wanna say that I am a complete novice in here so this might be a very basic error but I'd still like it to be posted.
我只想说我在这里是一个完全的新手,所以这可能是一个非常基本的错误,但我仍然希望它被发布。 I know how to print and make a dataframe, I've tried that but the problem is that I wanna see every single bit of data inside my csv file.
我知道如何打印和制作 dataframe,我已经尝试过了,但问题是我想查看 csv 文件中的每一位数据。 The csv file has 800 rows x 12 columns.
csv 文件有 800 行 x 12 列。 And whenever I print it out in my jupyter notebook it just shows 4 of the first values and 4 of the last values.
每当我在我的 jupyter 笔记本中打印出来时,它只会显示 4 个第一个值和 4 个最后一个值。 Which is not what I want.
这不是我想要的。 I tried both print it directly
df
, using the print()
, and also creating a dataframe datas = pd.DataFrame(df) datas
.我尝试使用
print()
直接打印它df
,还尝试创建 dataframe datas datas = pd.DataFrame(df) datas
。 But all of which seemed to do the same thing.但所有这些似乎都在做同样的事情。
TL;DR: I wanna print out every data inside my csv file in jupyter but it only prints out 4 of the first values and 4 of the last values. TL;DR:我想在 jupyter 中打印出我的 csv 文件中的所有数据,但它只打印出第一个值中的 4 个和最后一个值中的 4 个。
Thank you in advance!先感谢您!
Try尝试
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
And in the next cell you can print df在下一个单元格中,您可以打印 df
print(df)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.