Skip to content

Commit 77798d8

Browse files
committed
Fix isnull error in SeasonLookup.prepare_lookup_df - see HEA-787
1 parent df955e7 commit 77798d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/metadata/lookups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def prepare_lookup_df(self) -> pd.DataFrame:
6262
extra_dfs = []
6363
for country in all_countries:
6464
country_df = df[df["country_id"] == country]
65-
null_purpose_rows = country_df[country_df["purpose"].isnull()]
65+
null_purpose_rows = country_df[country_df["purpose"] == ""]
6666
for purpose in all_purposes:
6767
# Only add duplicate rows for purposes that aren't already defined for this country
6868
if purpose not in country_df["purpose"].unique():

0 commit comments

Comments
 (0)