Ramya M
Ramya M

Reputation: 55

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

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

Upvotes: 4

Views: 3182

Answers (2)

yts61
yts61

Reputation: 1599

pd.options.display.max_rows = 100

Upvotes: 0

abhilb
abhilb

Reputation: 5757

You must set the display.min_rows to 100

and then use head(100)

Upvotes: 6

Related Questions