Question: Python You will be given a Pandes DetaFrame (grades_df below), that consists of letter grades for students. Transform the letter grades to simplified 4.0 scale.
You will be given a Pandes DetaFrame (grades_df below), that consists of letter grades for students. Transform the letter grades to simplified 4.0 scale. In the simplified scale, there are only available grades, which are A, B, C, D, and y. Thus, remove the and suffers from the letter grades before mapping the input grade is not vald (0.g. s, return np.nan). When transforming letter grades to 4.0 scale, use the following mapping A-> 4.0 . B 3.0 C 2.0 D 10 F= 0,0 Resulting data frame should include both letter grades and simplified 4.0 scale grades import pandas as a grades_fps.Botafranetata ("Sahn't I'A'). "Linus' f''). "Aten' tc". "ada":{o". "Grace").onet. Anders'utter_Grades). ref.conte'1 should return John LIVE 3.0 Alan 2.0 . Ada 1.0 Grace 3.0 Donald 0.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
