Skip to content

Commit

Permalink
Merge pull request #133 from arturo-ramos/add_csa
Browse files Browse the repository at this point in the history
Adding Combined Statistical Area as possible geography for data pull
  • Loading branch information
fgregg authored Jan 4, 2024
2 parents 63445ba + 8ca7f89 commit 6e78200
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion census/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ def state_legislative_district_lower(self, fields, state_fips, legislative_distr
'for': 'state legislative district (lower chamber):{}'.format(str(legislative_district).zfill(3)),
'in': 'state:{}'.format(state_fips),
}, **kwargs)

@supported_years()
def combined_statistical_area(self, fields, csa, **kwargs):
return self.get(fields, geo={
'for': 'combined statistical area:{}'.format(str(csa)),
}, **kwargs)

class ACSClient(Client):

Expand Down

0 comments on commit 6e78200

Please sign in to comment.