Question: Please use clear handwriting and use Python. Thank you! Use the URL that we used in class in lecture notebook 4 (also shown below) to
Please use clear handwriting and use Python. Thank you!

Use the URL that we used in class in lecture notebook 4 (also shown below) to get the data for this problem. Compute the average horse power of cars for each origin. Explain in English the sequential steps you need to do to accomplish the task. Then implement your strategy in the Python function below. Note: - In class, we use the "requests" library to read the url and process the data. This processing involves stripping, splitting and converting. - In this exercise, we will use another library, "pandas", which is much better at reading well-formatted url. The code below retrieves the content from the url, and properly convert the information into "data", which is a list of items. You can run this code to see what data is. - You should look at the url and inspect the header to see how to retrieve horse power, origin, etc. import pandas url = 'https: //raw.githubusercontent.com/mwaskom/seaborn-data/master/mpg.csv' data = pandas . read_csv(url). values ANSWER: tba def prob1( data )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
