You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
We can aggregate the number of annual L&I violations per property owner per year based on the
standardized_address
column innegligent_devs.py
. Update that script to retain the column, then use it in thel_and_i.py
script to aggregate the total number of violations (both open and closed) perstandardized_address
in the past year. (This is a simple group by.) Create a column for the raw count of these perstandardized_address
, another column for the average number of violations per property perstandardized_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).The text was updated successfully, but these errors were encountered: