doanviettrung
doanviettrung

Reputation: 581

Is there a max size, max no. of columns, max rows?

.. and, if so, what are those max limits of pandas?

Sorry, this question seems elementary but I couldn't find an answer at pandas.pydata.org.

Upvotes: 54

Views: 116937

Answers (2)

Ludo Schmidt
Ludo Schmidt

Reputation: 1403

The limit is your memory. ( but these limits are really large )

On the other hand, concerning the possibility of displaying a large number of rows or columns, for example in "Jupyter Notebook", there is some predefined limits.

For example you can:

print (pd.options.display.max_columns) # <--- this will display your limit
pd.options.display.max_columns = 500 # this will set limit of columns to 500

The same idea work with rows:

display.max_rows

More details on: https://pandas.pydata.org/pandas-docs/stable/options.html

Upvotes: 42

root
root

Reputation: 80346

No. Pandas uses numpy arrays under the hood, so I belive it's whatever you can fit in your memory. As far as numpy arrays are concerned, you can find some discussion here.

Upvotes: 36

Related Questions