Skip to content

Commit

Permalink
[#134] Allow any number of input columns in the array feature selection
Browse files Browse the repository at this point in the history
  • Loading branch information
riley-harper committed May 30, 2024
1 parent dbb9eee commit 39f118d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hlink/linking/core/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def parse_feature_selections(
return df_selected

elif transform == "array":
col1, col2 = feature_selection["input_columns"]
input_cols = feature_selection["input_columns"]
output_col = feature_selection["output_column"]
df_selected = df_selected.withColumn(output_col, array(col1, col2))
df_selected = df_selected.withColumn(output_col, array(input_cols))
return df_selected

elif transform == "union":
Expand Down

0 comments on commit 39f118d

Please sign in to comment.