Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I can figure out this coding section. I have tried but couldn't figure out how to define your_team_df scripting just doesn't make sense to me

I can figure out this coding section. I have tried but couldn't figure out how to define your_team_df scripting just doesn't make sense to me even though I have taken a class before on it.

The management of your team wants you to run descriptive statistics on the relative skill of your team from 2013-2015. In this project, you will use the variable 'elo_n' to respresent the relative skill of the teams. Calculate descriptive statistics including the mean, median, variance, and standard deviation for the relative skill of your team. Make the following edits to the code block below:

  1. Replace??MEAN_FUNCTION??with the name of Python function that calculates the mean.
  2. Replace??MEDIAN_FUNCTION??with the name of Python function that calculates the median.
  3. Replace??VAR_FUNCTION??with the name of Python function that calculates the variance.
  4. Replace??STD_FUNCTION??with the name of Python function that calculates the standard deviation.

After you are done with your edits, click the block of code below and hit theRunbutton above.

In[7]:

print("Your Team's Relative Skill in 2013 to 2015") print("-------------------------------------------------------")  # ---- TODO: make your edits here ---- mean = your_team_df['elo_n'].mean() median = your_team_df['elo_n'].median() variance = your_team_df['elo_n'].var() stdeviation = your_team_df['elo_n'].std()  print('Mean =', round(mean,2)) print('Median =', round(median,2)) print('Variance =', round(variance,2)) print('Standard Deviation =', round(stdeviation,2)) Your Team's Relative Skill in 2013 to 2015 ------------------------------------------------------- --------------------------------------------------------------------------- NameError Traceback (most recent call last)  in  3 4 # ---- TODO: make your edits here ---- ----> 5 mean = your_team_df['elo_n'].mean() 6 median = your_team_df['elo_n'].median() 7 variance = your_team_df['elo_n'].var() NameError: name 'your_team_df' is not defined 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Accounting

Authors: Craig Deegan

9th Edition

1743767382, 9781743767382

Students also viewed these Mathematics questions