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.