Skip to content

Categorical column in points element becomes filled with NaNs #1041

@LucaMarconato

Description

@LucaMarconato

To reproduce: https://github.com/giovp/spatialdata-sandbox/blob/main/xenium_2.0.0_io/to_zarr.py

The problem is caused by

data[c] = data[c].cat.set_categories(data[c].head(1).cat.categories)
.

Related to #1009 and could share the same fix proposed in #1010.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions