dataframe-api icon indicating copy to clipboard operation
dataframe-api copied to clipboard

Example of non-dictionary categorical?

Open MarcoGorelli opened this issue 1 year ago • 0 comments

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?

MarcoGorelli avatar Jun 27 '24 14:06 MarcoGorelli