clean-and-green-philly icon indicating copy to clipboard operation
clean-and-green-philly copied to clipboard

Feature request: L&I violations aggregated by owner

Open nlebovits opened this issue 1 year ago • 4 comments

We can aggregate the number of annual L&I violations per property owner per year based on the standardized_address column in negligent_devs.py. Update that script to retain the column, then use it in the l_and_i.py script to aggregate the total number of violations (both open and closed) per standardized_address in the past year. (This is a simple group by.) Create a column for the raw count of these per standardized_address, another column for the average number of violations per property per standardized_address, and then also a column for the z-scored value of this average (i.e., how the average number of violations for that developer compares to the average of the average number of violations per developer across all developers in our database).

nlebovits avatar Nov 13 '24 18:11 nlebovits

Hello! I'd like to take a crack at this

HeyZoos avatar Nov 15 '24 14:11 HeyZoos

Assigned! Thanks for working on it :)

nlebovits avatar Nov 15 '24 15:11 nlebovits

@HeyZoos if you want to take this on now, take a crack at it! work in new_etl, following the instructions in #1014

nlebovits avatar Nov 22 '24 00:11 nlebovits

This issue has been marked as stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 23 '24 00:12 github-actions[bot]