import pandas as pd import numpy as np
raw_data = {'name': ['Willard Morris', 'Al Jennings', 'Omar Mullins', 'Spencer McDaniel'], 'age': [20, 19, 22, 21], 'favorite_color': ['blue', 'blue', 'yellow', "green"], 'grade': [88, 92, 95, 70]} df = pd.DataFrame(raw_data, index = ['Willard Morris', 'Al Jennings', 'Omar Mullins', 'Spencer McDaniel']) df
df['grade'].mean()
86.25
df['grade'].median()
90.0
#Aside from the mean/median, you may be interested in general descriptive statistics of your dataframe #--'describe' is a handy function for this df.describe()