data-liberation-project / phmsa-hazmat-incident-reports

Data from decades of PHMSA's "5800.1" hazardous material transportation incident reports
https://www.data-liberation-project.org/datasets/phmsa-hazmat-incident-reports/
7 stars 3 forks source link

Refactor RSS state-feed generation #12

Closed jsvine closed 1 year ago

jsvine commented 1 year ago

Mostly just adjusting the logic so that the same method can render both the overall and state-specific feeds, and then handling the state-level disaggregation outside that function.

PR also applies autoformatting and type-hinting, and also makes a small tweak so that Pandas' nan values are rendered as blank strings rather than nan.

cc: @m-nolan (and thanks!)