From 6e22be864bea78170c25b267c190a9ad4c3c1f50 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Thu, 7 Sep 2023 15:51:53 -0400 Subject: [PATCH] sandbox update --- apis/python/src/tiledbsoma/_arrow_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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