Question: Need a python3.x script to successful calculate the % of columns Arrest & Location Description, these columns are characters. Need a python 3.x script using
Need a python3.x script to successful calculate the % of columns Arrest & Location Description, these columns are characters.

Need a python 3.x script using a for statement that calculate the % of each location Description values and the same for Arrest i.e % of true and %false =Arrest Example below not correct python coding prc = (loc des)/float(loc des) *100 # get percentage of location of Description prc1 = (arrest)/float(arrest) * 100 #get percentage of location of Arrest G Location Description HOUSE AUTO HOUSE STREET STREET AUTO APARTMENT CHA GROUNDS ABANDONED BUILDING HOUSE VACANT LOT HALLWAY APARTMENT HOUSE STREET H Arrest TRUE FALSE FALSE TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE TRUE TRUE FALSE TRUE PORCH FALSE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
