diff --git a/apis/python/src/tiledbsoma/_arrow_types.py b/apis/python/src/tiledbsoma/_arrow_types.py index 2b40efe7df..03bc423d1e 100644 --- a/apis/python/src/tiledbsoma/_arrow_types.py +++ b/apis/python/src/tiledbsoma/_arrow_types.py @@ -197,7 +197,7 @@ def df_to_arrow(df: pd.DataFrame) -> pa.Table: categories = column.values.categories if hasattr(column.values, "ordered"): - ordered = column.values.ordered + ordered = bool(column.values.ordered) df[key] = pd.Categorical( values=column, categories=categories, ordered=ordered