New issue
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
Building Permit Exploration #16
Comments
Hey Neal, A couple of items:
This message is followed by a lot of other exception errors. The first line says that there are conflicting data types in columns 29 and 33. Checking the columns, there are no weird values that would obviously be throwing everything off. This thread recommends specifying the data type. Following the documentation here and here, I modified this line of the processing script to specify the dtype in a few different ways, but it didn't work. The docs also say you need the Any insight would be appreciated here. |
I have not encountered that error before. I'll dig into it. I'll probably also migrate over those other changes I made to the code in the housing-risk project that make the upload scripts more robust, so watch for a pull request with notes describing the changes. |
p.s. the way I wrote the script, I deliberately used this method because I didn't have to specify the data type - i.e. it's a quick and dirty method that makes it easy to add new files to the upload. But especially with large files it does have the limitations noted in that thread. The fix will likely require optionally specifying some data types. I will probably do that by incorporating it into the json file that deals with columns that have dates. |
@salomoneb First note, this line is the one that would need to be modified to fix the error you noted, as it is the one that reads the actual file. The line you pointed to (52) is the one that just reads the manifest file, not the file itself. |
Thanks. I noticed that line after I sent my message and was wondering about it. I'll play around with the load some more when I have time tonight and this weekend. I agree that opendata.dc.gov may not be our best choice if the data's not current or complete; however, when you open the file, it seems to have permits going all the way through 12/30/16. I wonder if the metadata link refers to when the page was initially created, or if the file is being updated in a way that's not reflected in that date. If the data is complete, it'll serve as a good set of foundational/historical information to start from. We can then figure out a better real-time source to tap into for 2017 and beyond. I also noticed that the metadata link lists octo.dc.gov as well as dcra.dc.gov under Credits (Attribution) in the lower right sidebar. If it's actually pulling from the octo address, we may have the most complete info here. |
Ok, I just merged a hotfix into dev, and ran the code. In the medium term, we should rewrite the whole loading function. There's a few issues:
I added a new issue with some notes on this refactor, which we should discuss: #54 |
FLAG we need to reload this table and parse the issue_date as date field. Should check the others too... |
@salomoneb if you're at the session tonight, we should coordinate on this issue too so I know where it stands. As with zoning, we should contact OCTO or whoever to find out what's up with this data. Did you ever hear back from your email? |
I'll be at the session. Looks like there's a separate source for 2017 data now, too. When/if I get a hold of the map specialist today, I'll ask them about this info. |
Looking into this again. As of now, the 2017 data set does not appear to be updating (only a handful of permits last modified around Jan 1) . Things we need to do:
|
I sent a note on 4/10/2017 to open.data@dc.gov asking for info on why the building permits data is not updating. It looks like both the opendata dataset and the octo data catalog data set are both failing to include new permits. I think we will be able to use the opendata.dc.gov version once this is fixed - hold off on integrating updated data until we find out the reason for this issue. |
Didn't ever receive response from open.data@dc.gov. Sent second inquiry 5/5/2017 |
Response from open.data@dc.gov: "You are correct, the most recent data available for building permits is January 2017. This is what you are seeing within the dataset. Open Data DC is not receiving updates from DCRA at this time. Although, we are working with DCRA to re-establish the live feed but do not yet have a timeline. The date seen in the details page is actually a date where we made an edit to the description. In this case, we added a note regarding the break in data (see attached). @emkap01 Are you up for bugging some government officials? Maybe start w/ their suggested DCRA contact and reach out to Traci Hughes for help if needed? |
Sure, I will reach out. |
Flagging the ESRI geojson limit on this ticket too, which came up in tax ingestion. The json api's have a default limit of 1,000 records. Looks like the best solution is using the 'geojson' api endpoint, but swap .geojson for .csv to get a bulk download of all the api already in csv format. |
Hey @NealHumphrey and @emkap01, any word from DCRA on updated building permit data? I've been playing around with some of the data in Tableau and would like to use it but don't want to make it a point of emphasis if it's not accurate. |
@louvis It looks like opendata.dc.gov still does not have access to current data. @emkap01 did you ever reach out to the DCRA FOIA officer? Let me know if you're able to or want me to help. @louvis I'm pretty sure this data should be reinstated at some point. Data is definitely valid through 2016, so you could do analysis that ends in that calendar year and I think it would be valuable both on its own and as a template for when data access is restored. |
Sorry for the delay on this - I emailed Runako and copied you on it, once we hear back from him I will follow up as appropriate. |
Hey @NealHumphrey and @emkap01 it looks like the 2017 building permit dataset has been updated through the end of June based on opendata.dc.gov. Issue dates run up into July as well so we might be able to add it to our existing 2016 data. |
Figure out what how best to get building permit data.
Data sources:
Questions:
Location Team:
-Using geocoded permit location data to return a list of all building permits within X miles of a specific affordable building.
The text was updated successfully, but these errors were encountered: