Skip to content

Commit 0d646ed

Browse files
committed
fixup! improve push performance scaling
1 parent f4d5eca commit 0d646ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mudata/_core/mudata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ def _push_attr(
23372337
# TODO: _maybe_coerce_to_bool
23382338
# TODO: _maybe_coerce_to_int
23392339
# TODO: _prune_unused_categories
2340-
mod_df = getattr(mod, attr).set_index(np.arange(mod_n_attr))
2340+
mod_df = getattr(mod, attr).set_index(np.arange(mod_n_attr, dtype=mod_map.dtype))
23412341
mod_df = _update_and_concat(mod_df, df)
23422342
mod_df = mod_df.set_index(getattr(mod, f"{attr}_names"))
23432343
setattr(mod, attr, mod_df)

0 commit comments

Comments
 (0)