Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl committed Feb 5, 2024
1 parent 17ecf7c commit 6ca0be1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/census/filtered.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def execute(context):
df = context.stage("data.census.cleaned")

# Household size
df_codes = context.stage("data.spatial.codes")
df_size = df[["household_id"]].groupby("household_id").size().reset_index(name = "household_size2")
df = pd.merge(df_codes, df_size)

Expand Down

0 comments on commit 6ca0be1

Please sign in to comment.