anndict.utils.convert_obs_col_to_string

anndict.utils.convert_obs_col_to_string#

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

Convert column(s) in adata.obs to str 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.