0% found this document useful (0 votes)
102 views3 pages

Bca212 Ids 2023

Uploaded by

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

Bca212 Ids 2023

Uploaded by

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

(Please write your Exam Roll No.

) o342/o2o 24
Exam Roll No. ...

END TERM EXAMINATION


FoURTH SEMESTER BCA] JULY 2023
Paper Code: BCAT-212 Subject: Introductlon to Data Science
Time: 3 Hours Maximum Marks: 75
Note: Attempt ftve question in all tncluding 0 No 1 which ts compulsory.
Select one question from each untt.

Attempt any five parts: (5x546)


What is a Series and how is it different from a 1-D array, a list, and a
dictionary.
Differentiate Supervised and Unsupervised learning
Briefly explain Bar and whisker plot with example. techniques
Give use of pivot_table() in pandas by giving example.
Specify any two python Libraries and their applications.
Explain skewness and its importance.
Given a Dataframe with rainfall data (day of the week and rainíall
inches), write code to find the minimum, maximum, Q1, Q2, Q3, mean
and standard deviation of rainfal.
UNIT-I
Q2 a Explain the roles and responsibilities of any six Data Science
professionals. (6.5)
b Explain four major tasks in data pre-processing (6)
Q3 a) What is Data Science Lifecycle? Explain all stages with diagram. (6.5)
b) Describe any five data collection strategies. (6)
UNIT-I
Q4 a) What are the various types of Data in Statistics? Explain with example
(6.5)
b) Explain and give formula for the following Measures of Variability of
data:
i. (6)
Standard Deviation.
Inter-quartile range
iii. Mean Absolute Deviation
iv. Variance
a) Explain linear regression and write the code to plot true line by taking
an example.
(6.5)
b) List various types of graph/chart available in the pyplot of matplotlib
library for data visualization. Explain any two of them in brief. (6)
UNIT-III
Q6 Give 4 ways of creating Numpy arrays (12.5)
Give the code or syntax to Perform the following operation on two 2D numpy
array arrayl and array2 and 1Darray array3.
a. Add arrayl and array2
b Find sum of arrayl elements over a given axis.
C Find product of array2 elements over a given axis.
d Change the dimension of an array3 to 2D.
e. Transpose the array created in part d.
f. Display 2 rows and third column of 2D array arrayl.
P.T.0.
BCAT-212
12-]
Join two 2D array along row.
h. Convert array2 to 1D array.
1. Split an array Iinto multiple subarrays
Give 4 ways of creating series
Write python code to create the following series (12.5)
101 Harsh
102 Arun
103 Ankur
104 Harpal
105 Divya
106 Jeet
b Show details of lst 3 employees using head function
Show details of last 3 employees using tail function
Show details of 1st 3 employees without using head function
Show details of last 3 employees without using tail function
Show value of index no 102.
Show 2nd to 4th records.
Show values of index no=101,103,105.
Show details of "Arun"

UNIT-IV
Q8 Give 4 ways to create data frame
(12.5)
Createadataframe to store data for 10 students
Name Age Semester Semester II Attendance
marks marks out
out of 600 of 500

Write program to perform following operations on above dataframe:


a. Display details of students who scored more than 560 marks in
semester 1
b Display details of students who scored less than 250 marks in
semester II
C. Display details of student who scored minimum marks in semester II
d. Display details of student who scored mnaximumn marks in semester II
e Display details of students whose attendance is more than 75.
f Display details of students whose attendance is less than 50.
Insert 2 new records in dataframe
h. Add a new column corresponding to percentage of marks of both
semestter.
i. Add a new column corresponding to grades:
Both sem percantage Grade
>=90
>=75 to <90 A
>=60 to <75 A
>=50 to <60 B+
>=40 to <50
<40

P.T.0.

BCAT-21
[3-1
Create the following DataFrame Sales containing vear-wise sales figures 10r
five salespersons in INR. Use the years as column labels, and salesperson
names as row labels. (12.5)

2014 2015 2016 2017

Madhu 100.5 12000 20000 50000

Kusumn 150.8 18000 50000 60000

Kinshuk 200.9 22000 70000 70000

Ankit 30000 30000 10000 80000

Shruti 40000 45000 12500 90000

Display the row labels of Sales.


Display the column labels of Sales.
Display the dimensions, shape, size and values of Sales.
Display the last two rows of Sales.
e. Display thefirst two colunmns of Sales.
f. Change the DataFrame Sales such that it becomes its transpose.
Add data to Sales for salesman Sumeet where the sales made are
|196.2, 37800, 52000, 78438] in the years [2014, 2015, 2016, 2017]
respectively.
h. Delete the data for the year 2014 from the DataFranme Sales.
Update the sale made by Shruti in 2017 to 100000.
Write the values of DataFrame Sales to a comma-separated ile
SalesFigures.csv on the disk. Do not write the row labels and column
labels.
Change the name of the salesperson Ankit to Vivaan and Kinshuk to
Shailesh.
Delete the data for salesman Madhu from the DataFrame Sales.

BCAT-212

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy