Question
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:
- Replace??MEAN_FUNCTION??with the name of Python function that calculates the mean.
- Replace??MEDIAN_FUNCTION??with the name of Python function that calculates the median.
- Replace??VAR_FUNCTION??with the name of Python function that calculates the variance.
- 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 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 defined3 4 # ---- TODO: make your edits here ---- ----> 5 mean = your_team_df['
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