From c6e5db1428e39c550b9d3144f4c3806b78d2487d Mon Sep 17 00:00:00 2001 From: Vivian Nguyen Date: Wed, 24 Jul 2024 12:19:31 -0500 Subject: [PATCH] format --- python-spec/src/somacore/query/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-spec/src/somacore/query/query.py b/python-spec/src/somacore/query/query.py index 0c40e300..c7cb18e6 100644 --- a/python-spec/src/somacore/query/query.py +++ b/python-spec/src/somacore/query/query.py @@ -307,7 +307,7 @@ def to_anndata( varm_layers=varm_layers, varp_layers=varp_layers, ).to_anndata() - + # Drop unused categories on axis dataframes for name in ad.obs: if pd.api.types.is_categorical_dtype(ad.obs[name]): @@ -315,7 +315,7 @@ def to_anndata( for name in ad.var: if pd.api.types.is_categorical_dtype(ad.var[name]): ad.var[name] = ad.var[name].cat.remove_unused_categories() - + return ad # Context management