We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d6f9f commit a5ce9abCopy full SHA for a5ce9ab
1 file changed
pipelines/assets/livelihood_activity.py
@@ -671,6 +671,7 @@ def livelihood_activity_label_recognition_dataframe(
671
all_labels_df[
672
[
673
"label_lower",
674
+ "activity_type",
675
"activity_label_regex",
676
"strategy_type_regex",
677
"is_start_regex",
@@ -693,8 +694,8 @@ def livelihood_activity_label_recognition_dataframe(
693
694
]
695
696
.drop_duplicates()
- .set_index("label_lower"),
697
- on="label",
+ .set_index(["label_lower", "activity_type"]),
698
+ on=["label", "activity_type"],
699
how="inner",
700
)
701
0 commit comments