Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 579 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 579 Bytes

Normalizing student grades with Pandas

You are given a dataframe containing student information, named df (shown below). Suppose you want to normalize each student's grade based on their age.

Age Favorite Color Grade Name
20 blue 88 Willard Morris
19 blue 95 Al Jennings
22 yellow 92 Omar Mullins
21 green 70 Spencer McDaniel

Write a function using Python Pandas that will add a new column to your dataframe containing a new grade normalized against the mean age of the students.