Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

ISBN: 0130913677, 978-0130913678

More Books

Students also viewed these Databases questions