Skip to content
New issue

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

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

Already on GitHub? # to your account

Example of non-dictionary categorical? #357

Open
MarcoGorelli opened this issue Jun 27, 2024 · 0 comments
Open

Example of non-dictionary categorical? #357

MarcoGorelli opened this issue Jun 27, 2024 · 0 comments

Comments

@MarcoGorelli
Copy link
Contributor

MarcoGorelli commented Jun 27, 2024

Hi

https://data-apis.org/dataframe-protocol/latest/API.html says

     Returns the dictionary with description on how to interpret the data buffer:
        - "is_ordered" : bool, whether the ordering of dictionary indices is
                         semantically meaningful.
        - "is_dictionary" : bool, whether a mapping of
                            categorical values to other objects exists
        - "categories" : Column representing the (implicit) mapping of indices to
                         category values (e.g. an array of cat1, cat2, ...).
                         None if not a dictionary-style categorical.

From having a looked at a few implementations, is_dictionary always seems to be hard-coded to True? Is there any example where it's False?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant