diff --git a/ehrapy/tools/feature_ranking/_rank_features_groups.py b/ehrapy/tools/feature_ranking/_rank_features_groups.py index 21d119a2..d7e36e3e 100644 --- a/ehrapy/tools/feature_ranking/_rank_features_groups.py +++ b/ehrapy/tools/feature_ranking/_rank_features_groups.py @@ -354,7 +354,6 @@ def rank_features_groups( adata_with_moved_columns = move_to_x(adata, rank_obs_columns) - # remove columns previously in X columns_to_select = adata_with_moved_columns.var_names.difference(adata.var_names) adata_with_moved_columns = adata_with_moved_columns[:, columns_to_select]