Closed
Description
Max_rows seems to have a maximum value of 60 (in 0.11 and dev, this works as expected in 0.10.1):
In [1]: %paste
from pandas import *
n = 100
foo = DataFrame(index=range(n))
foo['floats'] = np.random.randn(n)
set_option('display.max_rows', 101)
## -- End pasted text --
In [2]: foo.head(100)
Out[2]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 100 entries, 0 to 99
Columns: 1 entries, floats to floats
dtypes: float64(1)
In [3]: foo.head(61)
Out[3]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 61 entries, 0 to 60
Data columns (total 1 columns):
floats 61 non-null values
dtypes: float64(1)
In [4]: foo.head(60)
Out[4]:
floats
0 -0.631717
1 0.231468
2 -0.465971
3 -1.427025
...
In [5]: %paste
set_option('display.max_rows', 10)
## -- End pasted text --
In [6]: foo.head(10)
Out[6]:
floats
0 -0.194574
1 -0.130100
2 0.547474
3 0.669904
4 0.776946
5 -2.384084
6 -0.011147
7 -0.272660
8 -0.051326
9 1.757020
In [7]: foo.head(11)
Out[7]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 11 entries, 0 to 10
Data columns (total 1 columns):
floats 11 non-null values
dtypes: float64(1)
In [8]: version.version # same true for 0.11
Out[8]: '0.12.0.dev-d925966'
Essentially from http://stackoverflow.com/questions/16424493/pandas-setting-no-of-max-rows.