-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
in line [104]
'''
Create a pivot table that groups by Sex
and calculates the mean of Physics and Chemistry'''
pivot_table = df.pivot_table(index='Sex',
values=['Physics','Chemistry'],
aggfunc=[len, np.mean, np.std])
pivot_table
you are calculating std to so
'''
Create a pivot table that groups by Sex
and calculates the mean and standard deviation of Physics and Chemistry
'''
pivot_table = df.pivot_table(index='Sex',
values=['Physics','Chemistry'],
aggfunc=[len, np.mean, np.std])
pivot_table
Metadata
Metadata
Assignees
Labels
No labels