Skip to content
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

Feature request: L&I violations aggregated by owner #998

Open
nlebovits opened this issue Nov 13, 2024 · 4 comments
Open

Feature request: L&I violations aggregated by owner #998

nlebovits opened this issue Nov 13, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request python stale

Comments

@nlebovits
Copy link
Collaborator

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).

@HeyZoos
Copy link
Contributor

HeyZoos commented Nov 15, 2024

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

@nlebovits nlebovits moved this to In Development in Clean & Green Philly Nov 15, 2024
@nlebovits
Copy link
Collaborator Author

Assigned! Thanks for working on it :)

@nlebovits
Copy link
Collaborator Author

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

Copy link

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

@github-actions github-actions bot added the stale label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python stale
Projects
Status: In Development
Development

No branches or pull requests

2 participants