We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592aa53 commit a80d067Copy full SHA for a80d067
1 file changed
pipelines/jobs/metadata.py
@@ -73,7 +73,7 @@ def load_metadata_for_model(context: OpExecutionContext, sheet_name: str, model:
73
if "activity_type" in df:
74
df["activity_type"] = df["activity_type"].replace("", ActivityLabel.LivelihoodActivityType.LIVELIHOOD_ACTIVITY)
75
if "characteristic_group_id" in df:
76
- df["characteristic_group_id"] = df["characteristic_group_id"].replace("", None)
+ df["characteristic_group_id"] = df["characteristic_group_id"].astype(object).replace("", None)
77
78
if model_name == "ClassifiedProduct":
79
existing_instances = {instance.pk: instance for instance in model.objects.filter(pk__in=df["cpc"])}
0 commit comments