Question 1: Create a dataframe olympicsMedalTally of top 10 countries of 2016 Olympics medal table as below
Create Two Lists of Student Ids & Student Heights
Country = ['United States(USA)', 'Great Britain(GBR)', 'China(CHN)', 'Russia(RUS)', 'Germany(GER)',
'Japan(JPN)', 'France(FRA)', 'South Korea(KOR)', 'Italy(ITA)', 'Australia(AUS)']
Gold = [46, 27, 26, 19, 17, 12, 10, 9, 8, 8]
Create a dataframe of these two lists using DataFrame() method
import pandas as pd
olympicsMedalTally = pd.DataFrame({'Country': Country, 'Gold': Gold})
Question 2: Calculate all Measures of Central Tendency
Mean
olympicsMedalTally['Gold'].mean()
Median
olympicsMedalTally['Gold'].median()
Mode
olympicsMedalTally['Gold'].mode()
Question 3: Calculate all Measures of Dispersion
Range
olympicsMedalTally['Gold'].max() - studentHeightDf['Gold'].min()
Standard Deviation
olympicsMedalTally['Gold'].std()
Quartile
olympicsMedalTally['Gold'].quantile([.25, .50, .75])
Skewness
olympicsMedalTally['Gold'].skew()
Kurtosis
olympicsMedalTally['Gold'].kurtosis()