anndict.utils.convert_obs_col_to_category

anndict.utils.convert_obs_col_to_category#

anndict.utils.convert_obs_col_to_category(adata, cols)[source]#

Convert column(s) in adata.obs to category dtype.

Parameters:
adata AnnData

An AnnData.

cols str | list[str]

The column name(s) in adata.obs to convert.

Return type:

None

Returns:

None

Notes

Modifies adata in-place.