Skip to content
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

DOC: Fixed PR06 error in pandas.Categorical.from_codes #28888

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions pandas/core/arrays/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def from_codes(cls, codes, categories=None, ordered=None, dtype=None):

Parameters
----------
codes : array-like, integers
codes : array-like, ints
roshni-b marked this conversation as resolved.
Show resolved Hide resolved
An integer array, where each integer points to a category in
categories or dtype.categories, or else is -1 for NaN.
categories : index-like, optional
Expand All @@ -647,7 +647,7 @@ def from_codes(cls, codes, categories=None, ordered=None, dtype=None):
Whether or not this categorical is treated as an ordered
categorical. If not given here or in `dtype`, the resulting
categorical will be unordered.
dtype : CategoricalDtype or the string "category", optional
dtype : CategoricalDtype or the str "category", optional
If :class:`CategoricalDtype`, cannot be used together with
`categories` or `ordered`.

Expand Down