Skip to content

Commit

Permalink
fix extra spaces resolves #426
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Oct 29, 2024
1 parent 9de92d0 commit 7c7eeff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flowsa/data_source_scripts/Census_CBP.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def census_cbp_parse(*, df_list, year, **_):
.drop(columns=['state', 'county'])
.rename(columns={naics_col: 'ActivityProducedBy'})
.assign(Description = naics_col)
.assign(ActivityProducedBy = lambda x: x['ActivityProducedBy'].str.strip())
.query('ActivityProducedBy != "00"')
)

Expand Down

0 comments on commit 7c7eeff

Please sign in to comment.