Skip to content

REF: avoid inferred_type checks in plotting #62160

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

Merged
merged 1 commit into from
Aug 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/redirects.csv
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ generated/pandas.Index.get_slice_bound,../reference/api/pandas.Index.get_slice_b
generated/pandas.Index.groupby,../reference/api/pandas.Index.groupby
generated/pandas.Index.has_duplicates,../reference/api/pandas.Index.has_duplicates
generated/pandas.Index.hasnans,../reference/api/pandas.Index.hasnans
generated/pandas.Index.holds_integer,../reference/api/pandas.Index.holds_integer
generated/pandas.Index,../reference/api/pandas.Index
generated/pandas.Index.identical,../reference/api/pandas.Index.identical
generated/pandas.Index.inferred_type,../reference/api/pandas.Index.inferred_type
Expand Down
2 changes: 1 addition & 1 deletion pandas/plotting/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@


def holds_integer(column: Index) -> bool:
return column.inferred_type in {"integer", "mixed-integer"}
return column.dtype.kind in "iu"


def hist_series(
Expand Down
2 changes: 1 addition & 1 deletion pandas/plotting/_matplotlib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@


def holds_integer(column: Index) -> bool:
return column.inferred_type in {"integer", "mixed-integer"}
return column.dtype.kind in "iu"


def _color_in_style(style: str) -> bool:
Expand Down
Loading