QA Unit 4
QA Unit 4
Part-A
Apr-2024
1.write a python code snippet that generates a time-series graph representing COVID-19
incidence cases for particular week.
2.write a python code snippet that draws a histogram for the following list of positive numbers.
7 18 9 44 2 5 89 91 11 6 77 85 91 6 55
Nov-2023
Apr-2023
5.state the two possible options in IPython notebook used to embed graphics directly in the
notebook.
Nov-2022
7.create a data frame with key and data pairs as Key-Data pair as A-10,B-20,A-40,C-5,B-10,C-
5,B-10,C-10.Find the sum of each key and display the result as each key group.
Part-B
Apr-2024
i)Initialize two dictionaries(D1 and D2) with key and value pairs.
ii)compare those two dictionaries with master key list ‘M’ and print the missing keys.
ii)How to use group by with 2 columns in data set?give a python code snippet.
Nov-2023
Apr-2023
ii)Elaborate about the mapping between Python operators and Pandas methods.
Nov-2022
4.a)Imagine you have a series of data that represents the amount of precipitation each day for a
year in a given city.Load the daily rainfall statistics for the city of Chennai in 2021 which is
given in a CSV file chennairainfall2021.csv using pandas generate a histogram for rainy daya,
and find out the days that have high rainfall.
b)Comnsider that an E-commerce organization like Amazon, have different regions sales as
NorthSales, SouthSales, WestSales, EastSales.csv files.They want to combine North and west
region sales and south and East sales to find the aggregate sales of these collaborating regions
Help them to do so using Python code