Question
Use pandas to read the CSV file iris.csv available at: https://www.dropbox.com/s/f9oypx9o7pbdcu5/iris.csv?dl=0 a) Store the second column of the file by eliminating the header into a
Use pandas to read the CSV file iris.csv available at:
https://www.dropbox.com/s/f9oypx9o7pbdcu5/iris.csv?dl=0
a) Store the second column of the file by eliminating the header into a variable and print its mean and its standard deviation. Provide a screenshot showing the execution. b) Normalize the list obtained in Part a) by subtracting the mean and dividing by the standard deviation. Provide a screenshot showing the execution. c) Plot the data obtained in Part a). Provide a screenshot showing the execution. d) Create a normal distribution having the mean and the standard deviation of the data obtained in Part b). Provide a screenshot showing the execution.
Tips
If df is a pandas dataframe you can select the second column by using df.iloc[:,1] If df is a pandas dataframe you can obtain the mean and standard deviation as df.mean() and df.std() respectively. To create a normal distribution you can use numpy.random.normal() function.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started