anndata.settings.override#
- settings.override(**overrides)[source]#
Provides local override via keyword arguments as a context manager.
- Parameters:
- remove_unused_categories
bool
Whether or not to remove unused categories with
Categorical
. (default:True
).- check_uniqueness
bool
Whether or not to check uniqueness of the
obs
indices on__init__
ofAnnData
. (default:True
).- allow_write_nullable_strings
bool
Whether or not to allow writing of
pd.arrays.StringArray
. (default:False
).- use_sparse_array_on_read
bool
Whether or not to use
scipy.sparse.sparray
as the default class when reading in data (default:False
).
- remove_unused_categories
- Yields:
None