Question: Python Programming Answer It Fast Please 2.1 Consider following data set. Blood group and age of different patients given below. The blood group A+ is

Python Programming

Python Programming Answer It Fast Please 2.1 Consider following data set. Blood

Answer It Fast Please

2.1 Consider following data set. Blood group and age of different patients given below. The blood group A+ is encoded as Category 1, A-as 2 and so on... a) Make data frame by using DataFrame function. [3 marks) df = pd. DataFrame ('Person:{"A","8","C,D,E,F,G,H,1,1), 'Blood_Group": ['A+", 'A- b) Create the histogram for blood group (use bins 1 to 4). Include appropriate labels and color for the histogram. [5 marks) c) Also display the number of persons from histogram for each Blood Group [4 marks) d) Check for missing values in data frame and write code for replace missing values with mean [3 marks] Person Blood Group Category Age 23 45 67 A B C D E F G H A+ A- A+ A- B+ B- B+ B+ B+ A- 1 2 1 2 3 4 3 3 3 2 19 16 33 18 1 1 28 2.2 Write a python program to do the following operations on the given list of 6 characters. a) Read a list of 6 characters. Sort the list in descending order. [5 marks) b) Write python code to create a list of list, each inner list contains 2 elements (the character and its index in the original list) [10 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!