Skip to content

DOC: the Panda's option "display.max_info_rows" has wrong possible values description #54600

Closed
@ktprezes

Description

@ktprezes

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/user_guide/options.html?highlight=display.max_info_rows#available-options

Documentation problem

it is said in this option's possible values description:

display.max_info_rows : int or None

while the code:

import pandas as pd
pd.set_option('display.max_info_rows', None)
df = pd.DataFrame()
df.info()

causes the 'TypeError' with the message:

TypeError: '>' not supported between instances of 'int' and 'NoneType'

and the adjacent, related option 'display.max_info_columns' is described as ': int' only

Suggested fix for documentation

fix the row:
display.max_info_rows : int or None
to:
display.max_info_rows : int

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions