Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago

Question

=+1 What are the major issues related to international T&D?

Answered: 1 week ago