We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4d5eca commit 0d646edCopy full SHA for 0d646ed
1 file changed
src/mudata/_core/mudata.py
@@ -2337,7 +2337,7 @@ def _push_attr(
2337
# TODO: _maybe_coerce_to_bool
2338
# TODO: _maybe_coerce_to_int
2339
# TODO: _prune_unused_categories
2340
- mod_df = getattr(mod, attr).set_index(np.arange(mod_n_attr))
+ mod_df = getattr(mod, attr).set_index(np.arange(mod_n_attr, dtype=mod_map.dtype))
2341
mod_df = _update_and_concat(mod_df, df)
2342
mod_df = mod_df.set_index(getattr(mod, f"{attr}_names"))
2343
setattr(mod, attr, mod_df)
0 commit comments