We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02d0522 + 4e53eed commit 9bb63c2Copy full SHA for 9bb63c2
pycytominer/cyto_utils/cells.py
@@ -713,8 +713,13 @@ def merge_single_cells(
713
714
sc_df = (
715
self.image_df.merge(sc_df, on=self.merge_cols, how="right")
716
- .rename(self.linking_col_rename, axis="columns")
717
- .rename(self.full_merge_suffix_rename, axis="columns")
+ # pandas rename performance may be improved using copy=False, inplace=False
+ # reference: https://ryanlstevens.github.io/2022-05-06-pandasColumnRenaming/
718
+ .rename(
719
+ self.linking_col_rename, axis="columns", copy=False, inplace=False
720
+ ).rename(
721
+ self.full_merge_suffix_rename, axis="columns", copy=False, inplace=False
722
+ )
723
)
724
if single_cell_normalize:
725
# Infering features is tricky with non-canonical data
0 commit comments