We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16661c0 commit fab390eCopy full SHA for fab390e
pipelines/assets/baseline.py
@@ -83,6 +83,9 @@ def get_wealth_group_dataframe(
83
wealth_group_df = wealthgroupcategorylookup.do_lookup(
84
wealth_group_df, "district", "wealth_group_category", update=True
85
)
86
+ # Remove the duplicate wealth_group_category_original column created by the second do_lookup(),
87
+ # which otherwise causes problems when trying to merge dataframes, e.g. when building the wealth_group_df.
88
+ wealth_group_df = wealth_group_df.loc[:, ~wealth_group_df.columns.duplicated()]
89
except ValueError:
90
pass
91
0 commit comments