Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a dictionary 'Performance' with key/values named R_No= (1,2,3,4,5,6,8,9,_} and Grades= {a, b, c,_d, b, a, b, c, d) and perform the following operations
Create a dictionary 'Performance' with key/values named R_No= (1,2,3,4,5,6,8,9,_} and Grades= {a, b, c,_d, b, a, b, c, d) and perform the following operations and write the expected output. i. Replace the empty values with 0' in R_ No and with 'E' in Grades on original data [2M] ii. Remove the empty cell rows and store in dictionary [2M] il. Remove all duplicates on original data. [2M] iv. Replace the empty cells with mean on column R_No [2M] v. Use index 'Dup' for duplicated values on Grades in original data (2M] vi. Assign explicit indices (AA, BB, CC, DD, EE, FF, GG, HH, II, J) to the dictionary [2M]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
python code of quesion is written below hope its clear from future import division printfunction import sys import numpy as np import scipy as sp import matplotlibpyplot as plt from matplotlibtransfor...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