We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We got this error when updating the dob_safety_violations dataset. Seems like they changed the file layout, so we'll need to update our yaml
dob_safety_violations
{'bin': '3116942', 'violationissuedate': '01/06/2006', 'violationnumber': '010606LL629112840', 'violationtype': 'LL6291', 'violationremarks': '', 'violationstatus': 'Active', 'devicenumber': '30000070181Y0001', 'devicetype': 'Boiler', 'cycleenddate': '12/31/2005', 'borough': 'Brooklyn', 'block': '5091', 'lot': '7', 'housenumber': '803', 'street': 'ROGERS AVENUE', 'city': 'New York', 'state': 'New York', 'postcode': '11226', 'latitude': '40.651182', 'longitude': '-73.952513', 'communityboard': '317', 'councildistrict': '40', 'bbl': '3050910007', 'censustract2020': '820', 'neighborhoodtabulationareanta2020': 'East Flatbush-Erasmus'} File "/app/load_dataset.py", line 410, in <module> main() File "/app/load_dataset.py", line 406, in main load_dataset(dataset) File "/app/load_dataset.py", line 344, in load_dataset ds.db_import() File "/usr/local/lib/python3.9/site-packages/nycdb/dataset.py", line 86, in db_import self.import_schema(schema) File "/usr/local/lib/python3.9/site-packages/nycdb/dataset.py", line 132, in import_schema batch = list(itertools.islice(rows, 0, BATCH_SIZE)) File "/usr/local/lib/python3.9/site-packages/nycdb/typecast.py", line 233, in cast_rows yield self.cast_row(row) File "/usr/local/lib/python3.9/site-packages/nycdb/typecast.py", line 244, in cast_row d[column] = self.cast[column.lower()](val) KeyError: 'postcode'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We got this error when updating the
dob_safety_violations
dataset. Seems like they changed the file layout, so we'll need to update our yamlThe text was updated successfully, but these errors were encountered: