0% found this document useful (0 votes)
16 views10 pages

Ids PW

Uploaded by

nikonlinemarket
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)
16 views10 pages

Ids PW

Uploaded by

nikonlinemarket
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/ 10

B. V.

Patel Institute of Computer Science, UTU 2024-2025

B. C.A. (Semester - 3)
DS4001: Introduction to Data Science
Practical Workbook
Course Credit (Pr): 01 Total Hours: 24

Course Objective: To understand data science concepts and techniques. To explore methods to analyze real-
world data for valuable insights that support informed decision-making and problem-solving.

Course Outcomes:

CO1: Understand fundamental data science concepts, including the data lifecycle and key terms.
CO2: Understand fundamental programming skills for data manipulation and analysis.
CO3: Identify skills of data cleaning and preprocessing.
CO4: Recognize Data Visualization Techniques.
CO5: Interpret the results and predictions generated by machine learning models.
CO6: Comprehend data science techniques to solve real-world problems across industries.

Programme Outcomes:
PO1: Ability to understand the concepts of key areas in computer science.
PO2: Ability to design and develop system, component or process as well as test and maintain it so as to provide
promising solutions to industry and society.
PO3: Effective communication and presentation skill.
PO4: Ability to understand professional and ethical responsibility.
PO5: Recognition of the need for life-long learning.

Program
Unit No. Practical No. Total Hours Course Outcomes
Outcomes
1 CO1 PO2, PO3,PO5
1, 2, 3, 4 12
2 CO1,CO2 PO2, PO3,PO5
3 5, 6 06 CO1,CO2,CO3 PO2, PO3,PO5
4 CO1,CO2,CO3,CO4 PO2, PO3,PO5
7, 8 06
5 CO1,CO2,CO3,CO4,CO5 PO2, PO3,PO5
Total 08 24

MS. URVI PANCHAL 1


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 1 Enrolment No.


Practical A. The user will be asked to provide their Contact Number (used as the username) and
Problem Password. Authentication will be based on static data. If the user fails to log in after three
attempts, display the message: 'You have exceeded the maximum limit for login attempts.
Please contact your administrator!' Ensure that both fields are validated.
B. Write a program that prompts the user to enter their grade (a number between 0 and 100)
and classifies it into one of the following categories: A, B, C, D, or F. Use conditional statements
to determine the grade classification.
C. Write a program that generates and prints a multiplication table for a given number. The table
should display the results of multiplying the number by integers from 1 to 10.
D. Create a program that prompts the user to enter a string. Count and print the number of
vowels (a, e, i, o, u) in the string. Ignore case and handle both uppercase and lowercase
vowels.
Objective(s) To gain proficiency in Python programming by applying loops and conditional statements to solve
practical problems.
Pre-requisite Basic understanding of Python programming, including loops, conditional statements, and handling
user input.
Duration for 2 hours
completion
Nature of Handwritten
submission
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Solutions 4
Correctness of Solutions 4
Usage of Conditional and Looping Statements 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 2


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 2 Enrolment No.


Practical A. Write a program that prompts the user to enter a list of numbers. The program should
Problem calculate and display the total number of elements in the list, the maximum value in the list,
and the minimum value in the list.
B. Develop a Python program that initializes a list named sports with the following predefined
elements: ["soccer", "basketball", "tennis", "baseball", "hockey"]. The program should
perform three operations on this list. First, append a new sport, such as "volleyball," to the
end of the list. Second, count and display how many times a specific sport, like "tennis,"
appears in the list. Additionally, extend the list by adding elements from another list of sports,
such as ["cricket", "rugby", "swimming"]. After each operation, display the updated list to
show the changes made.
C. Write a program that prompts the user to enter a list of favorite numbers, such as [3, 1, 4, 1,
5, 9]. The program should first reverse the order of the elements in the list, and then sort the
list in ascending order. Display the list after each operation to show the changes.
Objective(s) Develop Python programs to compare lists, analyze list elements, manipulate predefined lists, and
perform list modifications including reversing and sorting.
Pre-requisite Basic understanding of list operations and Python programming concepts.
Duration for 2 hours
completion
Nature of Handwritten
submission
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Solutions 4
Correctness of Solutions 4
Proper Usage of List Methods 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 3


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 3 Enrolment No.


Practical Shivansh wants to perform a series of operations on a tuple containing cities he plans to visit using
Problem Python. Consider this tuple of cities: ('Paris', 'New York', 'Tokyo', 'Berlin', 'Sydney').
A. Printing Each City: First, Shivansh needs to write a program that prints each city in the tuple
one by one.
B. Checking for a Specific City: Next, he wants to check if a specific city, such as 'Tokyo,' is
present in the tuple and print an appropriate message based on its presence (e.g., Print "City
found" if the city is in the tuple. Print "City not found" if the city is not in the tuple).
C. Updating the Tuple: After that, Shivansh plans to update the tuple by creating a new tuple
that combines the original tuple with a new city, removes an existing city (which requires
creating a new tuple without the unwanted city), and prints the updated tuple.
D. Shivansh also aims to analyze the tuple further by performing advanced operations,
including:
a. Counting Occurrences: Counting how many times a specific city appears in the tuple.
b. Finding First and Last Cities Alphabetically: Identifying the city that comes first
and last alphabetically.
c. Slicing the Tuple: Extracting a sub-tuple containing only a portion of the cities.
d. Finding the Length: Determining the total number of cities in the tuple.
e. Extending the Tuple: Extending the tuple by concatenating it with another tuple of
cities.
f. Finding Index of a City: Determining the index of a specific city within the tuple.
g. Tuple Unpacking: Unpacking the tuple into individual variables representing each
city.
Objective(s) Develop Python programs to analyze and manipulate tuples, perform tuple slicing, counting, and
indexing, and handle tuple operations such as concatenation, unpacking, and updating through new
tuple creation.
Pre-requisite Basic understanding of tuple operations and Python programming concepts.
Duration for 3 hours
completion
Nature of Handwritten
submission
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Solutions 4
Correctness of Solutions 4
Proper Usage of List Methods 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 4


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 4 Enrolment No.


Practical Rishi wants to perform a series of operations on a set of unique elements using Python. Consider this
Problem set of integers: {1, 2, 3, 4, 5}.
A. Printing Each Element: First, Shivansh needs to write a program that prints each element in
the set one by one.
B. B. Checking for a Specific Element: Next, he wants to check if a specific element, such as 3, is
present in the set and print an appropriate message based on its presence (e.g., Print
"Element found" if the element is in the set. Print "Element not found" if the element is not in
the set).
C. Updating the Set: Add a new element, such as 6, to the set and print the updated set. Remove
an existing element, such as 2, from the set and print the updated set.
D. Managing and Analyzing the Set:
a. Adding Multiple Elements: Add multiple new elements at once, such as {7, 8, 9}, and
print the updated set.
b. Finding the Difference: Find the difference between the current set {1, 2, 3, 4, 5} and
another set, such as {4, 5, 6, 7}, and print the resulting set.
c. Finding the Intersection: Determine the intersection between the current set {1, 2, 3,
4, 5} and another set, such as {3, 4, 5, 6, 7}, and print the resulting set.
d. Finding Symmetric Differences: Find the symmetric difference between the current
set {1, 2, 3, 4, 5} and another set, such as {4, 5, 6, 7}, and print the resulting set.
e. Union of Sets: Find the union of the current set {1, 2, 3, 4, 5} and another set, such as
{6, 7, 8, 9}, and print the resulting set.
f. Popping an Element: Remove and return an arbitrary element from the current set,
and print the updated set.
g. Discarding and removing an Element: Remove a specific element, such as 3, and print
the updated set.
Objective(s) Develop Python programs to manipulate sets, including element lookups, union, intersection,
difference, and advanced operations like symmetric differences.
Pre-requisite Basic understanding of set operations and Python programming concepts.
Duration for 3 hours
completion
Nature of Handwritten
submission
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Dictionary Operations 4
Correctness of Key-Value Manipulations 4
Proper Usage of Dictionary Methods 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 5


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 5 Enrolment No.


Practical Darsh wants to perform a series of operations on a dictionary that stores the population of various
Problem cities using Python. Consider this dictionary of cities and their populations: {'Paris': 2148327, 'New
York': 8175133, 'Tokyo': 13929286, 'Berlin': 3644826, 'Sydney': 5312163}.

A. Printing Each City and Population: First, Shivansh needs to write a program that prints
each city and its population one by one.
B. Checking for a Specific City: Next, he wants to check if a specific city, such as 'Tokyo,' is
present in the dictionary and print an appropriate message based on its presence (e.g., Print
"City found" and display the population if the city is in the dictionary. Print "City not found"
if the city is not in the dictionary).
C. Updating the Dictionary: After that, Shivansh plans to update the dictionary by adding a
new city with its population, removing an existing city, and printing the updated dictionary.
D. Darsh also aims to analyze the dictionary further by performing advanced operations,
including:
a. Updating a Population: Modifying the population value of an existing city.
b. Merging Dictionaries: Combining this dictionary with another dictionary of cities and
their populations.
c. Counting Entries: Counting the total number of cities in the dictionary.
d. Finding Minimum and Maximum Populations: Identifying the cities with the smallest
and largest populations.
e. Iterating Over Keys and Values: Iterating through the dictionary to separately print all
cities and their populations.
f. Filtering Entries: Creating a new dictionary containing only cities with populations over
a certain threshold.
Objective(s) Develop Python programs to analyze and manipulate dictionaries, perform key-value lookups,
counting, and filtering, and handle dictionary operations such as merging, updating, and sorting by
keys or values.
Pre-requisite Basic understanding of dictionary operations and Python programming concepts.
Duration for 3 hours
completion
Nature of Handwritten
submission
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Dictionary Operations 4
Correctness of Key-Value Manipulations 4
Proper Usage of Dictionary Methods 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 6


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 6 Enrolment No.


Practical Consider the sample data values taken from the Professor dataset for analysis. The dataset is
Problem generated based on key points reported by the academic administration and faculty management
unit of Stellar University.

Answer the following questions:


1. How many elements are in the dataset? Write down these elements.
2. How many variables are in the dataset? Write down these variables.
3. How many observations are in the dataset? Write any two observations.
4. Determine the variables that belong to the category of qualitative and quantitative.
5. Write any five data values that are quantitative in nature.
6. Identify the scale of measurement used to store data in each of the above-given variables and
justify the same.
7. State the variable(s) that can be used during the analysis of data with a classification approach.

MS. URVI PANCHAL 7


B. V. Patel Institute of Computer Science, UTU 2024-2025

8. Write all steps to store this tabular data into CSV format.
Objective(s) To understand the types of data and identification of scale of measurement for each variable.
Pre-requisite Basics of data and its characteristics
Duration for 4 hours
completion
Nature of Handwritten
submission
References https://www.statisticshowto.com/probability-and-statistics/descriptive-statistics/scales-of-
for measurement/
solving the
problem
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Solutions 4
Correctness of Solutions 4
Understanding of Scale of Measurements 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 8


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 7 Enrolment No.


Practical Refer to the link https://www.stats.govt.nz/large-datasets/csv-files-for-download/
Problem Download the dataset for Employment Indicator.
Analyze the dataset and perform the operations on it:
1. Get the Structure of the Data Frame used to store data of dataset.
2. Summarize the data of data frame.
3. Expand Data Frame by following:
a) Add column
b) Add row
c) Drop data frame columns by name
4. Apply Order function for sorting.
5. Write any five interpretations about the dataset.
6. Enlist the nominal, interval and ratio variable of this dataset. Write significance of each of
identified variable(s) with atleast two possible values.
7. Enlist the ordinal variable of this dataset, if any and justify the same.
8. Print first and third attribute from the data frame.
9. List observation that has a primary as target value in High_industry variable (attribute).
10. Print the mean of the value variable (attribute).
Objective(s) To apply subset operation on data frame and performing basic operation on data frame.

Pre-requisite Scale of Measurement, Fundamental knowledge of Central Tendency

Duration for 3 hours


completion
Nature of Handwritten
submission
References https://www.statisticshowto.com/probability-and-statistics/descriptive-statistics/scales-of-
for measurement/
solving the
problem
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Solutions 4
Correctness of Solutions 4
Understanding of Data Frame Operations 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 9


B. V. Patel Institute of Computer Science, UTU 2024-2025

Practical No. 8 Enrolment No.


Practical Refer to the link https://www.stats.govt.nz/large-datasets/csv-files-for-download/
Problem Download the dataset for Employment Indicator, perform and visually represent it.

1. Create a bar chart showing the average value for each Industry_name_NZSIOC.
2. Create a pie chart representing the distribution of Value across different
Industry_name_NZSIOC categories for the year 2023.
3. Create a line plot to show the trend of Value over the years for the industry "Manufacturing".
4. Create a scatter plot to explore the relationship between Value and Units.
Objective(s) Develop skills in creating visualizations with Matplotlib and Seaborn. Analyze and interpret
industry-related data through various plots.

Pre-requisite Basic knowledge of Python and familiarity with data handling using Pandas.

Duration for 3 hours


completion
Nature of Handwritten
submission
Assessment
Evaluation Criteria Marks Secured by Student
Completeness of Solutions 4
Correctness of Solutions 4
Understanding of Matplotlib and Seaborn library 4
Technical Viva 3
Teacher’s Signature & Date

MS. URVI PANCHAL 10

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