Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started