Skip to content

Commit

Permalink
detail
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Dec 1, 2023
1 parent a132d73 commit 3131039
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions skrub/_interpolation_joiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ def transform(self, X):
)
prediction_results = self._check_prediction_results(prediction_results)
predictions = [res["predictions"] for res in prediction_results]
predictions = _multi_add_column_name_suffix(predictions, self.suffix)
predictions = [
_join_utils.add_column_name_suffix(df, self.suffix) for df in predictions
]
for part in predictions:
part.index = main_table.index
return pd.concat([main_table] + predictions, axis=1)
Expand Down Expand Up @@ -430,7 +432,3 @@ def _predict(key_values, columns, estimator, propagate_exceptions):
"columns": columns,
"shape": (key_values.shape[0], len(columns)),
}


def _multi_add_column_name_suffix(dataframes, suffix):
return [_join_utils.add_column_name_suffix(df, suffix) for df in dataframes]

0 comments on commit 3131039

Please sign in to comment.