Final answer:
To generate descriptive statistics in Python, use the 'mean', 'median', 'var', and 'std' functions from the pandas library to calculate the mean, median, variance, and standard deviation, respectively.
Step-by-step explanation:
To calculate descriptive statistics for the relative skill of your team using Python, you can make the following edits to the code that was provided:
- Replace ??MEAN_FUNCTION?? with 'mean'
- Replace ??MEDIAN_FUNCTION?? with 'median'
- Replace ??VAR_FUNCTION?? with 'var'
- Replace ??STD_FUNCTION?? with 'std'
Here is the corrected code block with the appropriate functions from the pandas library:
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))