0% found this document useful (0 votes)
27 views2 pages

QA Unit 4

fods

Uploaded by

AntonyManickaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

QA Unit 4

fods

Uploaded by

AntonyManickaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Unit-4 (FODS)

Part-A

Apr-2024

1.write a python code snippet that generates a time-series graph representing COVID-19
incidence cases for particular week.

Day1 Day 2 Day3 Day4 Day5 Day6 Day7


7 18 9 44 2 5 89

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

3.Explain partial sort.

4.Give a summary about the comparison operators

Apr-2023

5.state the two possible options in IPython notebook used to embed graphics directly in the
notebook.

6.How plt.scatter function differs from plt.flot function?

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.

8.List the attributes of a Numpy array.Give an example for it.

Part-B

Apr-2024

1.a)Define Dictionary in Python. Do the following operations on dictionaries.

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.

iii)Find keys that are in D1 but Not in D2.

iv)Merge D1 and D2 and create D3 using expressions.

b)i)How to create hierarchical data from the existing data frame?

ii)How to use group by with 2 columns in data set?give a python code snippet.

Nov-2023

2.a)Explain grouping in python with example.

b)Explain the following in python

i)Data indexing ii)Operation on missing data

Apr-2023

3.a)what is an aggregate function?Elaborate about the aggregate functions in Numpy.

b)i)what is broadcasting?Explain the rules of broadcasting with an example.

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

You might also like