create functions to find the average number of stolen animals and another to get a list of unique types of animals that have been stolen.
using python in jupyter notebook; we were given a csv file called stolen_animals.csv which contained data on stolen animals in london . The original raw data was given like this;
Count of Stolen Animals,Type of Animal,Borough,Type Of Offence,Animal Recovered,Year and Month
1,Dog,Lambeth,Theft and Handling,Not Recovered,Jan-2010
1,Dog,Islington,Violence Against the Person,Not Recovered,Jan-2010
but have written a function which made each column into list, count of stolen animals into a list of integers and the rest into list of integers. I now need to create functions to find the average number of stolen animals and another to get a list of unique types of animals that have been stolen. To add we are not allowed to use packages and can only input/output to be done by open and close.
Below is the specifications given for each function
Step by step
Solved in 2 steps with 1 images