Pandas: Setting no. of max rows

I have a problem viewing the following DataFrame:

    n = 100
    foo = DataFrame(index=range(n))
    foo['floats'] = np.random.randn(n)

The problem is that it does not print all rows per default in ipython notebook, but I have to slice to view the resulting rows. Even the following option does not change the output:

    pd.set_option('display.max_rows', 500)

Does anyone know how to display the whole array?

For version 0.11.0 you need to change both display.height and display.max_rows.

    pd.set_option('display.height', 500)
    pd.set_option('display.max_rows', 500)

See also pd.describe_option('display').


Back to homepage or read more recommendations: