Skip to content

Commit

Permalink
add support for msas
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidhackett committed Apr 3, 2024
1 parent 2d9e07a commit cdeeac3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions census/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,13 @@ def combined_statistical_area(self, fields, csa, **kwargs):
return self.get(fields, geo={
'for': 'combined statistical area:{}'.format(str(csa)),
}, **kwargs)

@supported_years()
def msa(self, fields, msa, **kwargs):
return self.get(fields, geo={
'for': ('metropolitan statistical area/' +
'micropolitan statistical area:{}'.format(msa)),
}, **kwargs)

class ACSClient(Client):

Expand Down

0 comments on commit cdeeac3

Please sign in to comment.