You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eureka_ml_insights/user_configs/llm_extraction.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ def configure_subpipeline(
149
149
# consolidate new {extracted_answer_col} to replace the original {extracted_answer_col} whenever the latter is empty
150
150
# the initial if statement checks whether there has been a join beforehand
151
151
"transform": RunPythonTransform(
152
-
f"df['{extracted_answer_col}'] = df.apply(lambda row: row['{extracted_answer_col}'] if '{extracted_answer_col}_x' not in row else row['{extracted_answer_col}_y'] if row['{extracted_answer_col}_x'] == '' else row['{extracted_answer_col}_x'], axis=1)"
152
+
f"df['{extracted_answer_col}'] = df.apply(lambda row: row['{extracted_answer_col}'] if '{extracted_answer_col}_x' not in row else row['{extracted_answer_col}_y'] if row['{extracted_answer_col}_x'] == '{not_extracted_answer_value}' else row['{extracted_answer_col}_x'], axis=1)"
0 commit comments