Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
ktprezes opened this issue Aug 17, 2023 · 0 comments · Fixed by #54652
Closed
1 task done
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@ktprezes
Copy link

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

@ktprezes ktprezes added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant