Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pd.set_option('display.max_rows', ..) is not working even after

Tags:

python

display

pd.set_option('display.max_rows', ..) is not working. I have a large df with more than 500k rows. when I do the following(as in the link below) for a df, only 10 rows are getting displayed. I need to display 100 rows. What should I do?

image here

like image 499
Ramya M Avatar asked Sep 11 '25 19:09

Ramya M


1 Answers

You must set the display.min_rows to 100

and then use head(100)

like image 109
abhilb Avatar answered Sep 14 '25 10:09

abhilb