Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
part1: Simplify BaseIndex to an abstract class #10389
part1: Simplify BaseIndex to an abstract class #10389
Changes from 57 commits
b791c36
ec7cacd
97ca0e1
96f9069
cb14c85
5c71342
bfe627e
219c21a
7025353
0f3ef27
37e64f1
ac49b9c
89d4fab
008b8d8
da15cf8
f35d739
47718a7
5bf62d5
2368c3b
d69cc2e
d63df44
c964884
def9e5a
b76520a
5cb3de7
1b5a63c
a98e08d
cc33c5a
1d043bc
e58c169
d000c8e
6d4c48f
2427c35
867944c
7c63953
f56c693
f77a6c4
277b317
c1267b7
f66589a
74acfb3
ab0e1c4
f493400
5680d30
8004014
e5a391e
3af1cf4
6194c27
3da35f0
29de223
3381579
828a4e4
6336f6d
cae92e9
8e1a5bf
d59fd8a
d88b83a
1441ded
84627f6
8dcd8b7
e912399
f396256
e6fdb6f
0a9d7e6
26216f8
82f5dfc
407a2cc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this always
CategoricalIndex
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accepts
CategoricalAccesor
orSingleColumnCategoricalIndex
and returns the following:Index
(pandas) orStringIndex
(cudf) >> object dtypesInt64Index
orFloat64Index
>> numeric dtypesFloatIndex
(pandas) andStringIndex
(cudf) >> None dtypesIndex
(pandas) andGenericIndex
(cudf) >> boolean dtypesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. This is a property of
CategoricalAccessor
, right? What do you mean by "accepts"? Isn't the accessor always created viaSeries.cat
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the confusion, I didn't realize that
CategoricalIndex
has its own.categories
method (separate from theCategoricalAccessor
class)