We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 951c443 commit 488bd34Copy full SHA for 488bd34
1 file changed
regcensus/api.py
@@ -175,7 +175,7 @@ def get_jurisdictions(jurisdictionID=''):
175
return clean_columns(output)
176
177
178
-def get_periods(jurisdictionID=''):
+def get_periods(jurisdictionID='', documentType=3):
179
"""
180
Get dates available for all or one specific jurisdiction
181
and compatible series IDs
@@ -187,7 +187,8 @@ def get_periods(jurisdictionID=''):
187
if jurisdictionID:
188
output = pd.io.json.json_normalize(
189
requests.get(
190
- URL + f'/periods?jurisdiction={jurisdictionID}').json())
+ URL + (f'/periods?jurisdiction={jurisdictionID}&'
191
+ f'documentType={documentType}')).json())
192
else:
193
194
requests.get(URL + f'/periods/available').json())
0 commit comments