Python for Data Science - Laboratory

[ 2nd Semester - AIDS - Artificial Intelligence and Data Science Department ]

Under Class: | 2nd Semester [AIDS Dept Anna University 2025 Regulation] |

Python for Data Science - Laboratory - Practical Manual, Experiments, Guide Study Materials PDF Download

Engineering - Python for Data Science - Laboratory Subject (under Anna University 2nd Semester - AIDS - Artificial Intelligence and Data Science Department Regulation 2025) - Practical Manual, Experiments, Guide Study Materials PDF Download

Python for Data Science

 

Basics of Python:

Practical:

1. Programs using conditional and looping constructs

2. Programs using different data frames like list, tuple, set and dictionary.

 

Functions and Files:

Practical:

1. Programs using functions and classes.

2. Programs using strings and files

 

Foundations of Data Science:

Practical:

1. Data Creation and Mathematical operations.

2. Graphs and Plotting.

 

Descriptive Analytics:

Practical:

1. Statistical description of data without libraries

2. Generation of correlation coefficient.

3. Linear regression model.

 

Numpy and Pandas Libraries:

Practical:

1. Creation of 1D, 2D, and 3D NumPy arrays

2. Array Slicing and Indexing operations

3. Reindexing, and aligning data across multiple Data Frames.

 

Data Visualization:

Practical:

1. Line plot, bar plot, histogram, and box plot.

2. Seaborn plots, plot styling and customization

 


Computer Science 12th Std



UNIT I: Problem Solving Techniques:


Chapter 1: Function:


• Function: Introduction
• Function with respect to Programming language
• Interface Vs Implementation
• Pure functions
• Points to remember - Problem Solving Techniques : Function
• Function: Book Back Questions and Answers

Chapter 2: Data Abstraction:


• Data Abstraction - Introduction
• Abstract Data Types
• constructors and selectors
• Representation of Abstract datatype using Rational numbers
• Lists, Tuples
• Data Abstraction in Structure
• Data Abstraction : Points to remember
• Data Abstraction: Book Back Questions and Answers

Chapter 3: Scoping:


• Scoping
• Variable Scope
• LEGB rule
• Types of Variable Scope
• Module
• Scoping: Points to remember
• Scoping: Book Back Questions and Answers

Chapter 4: Algorithmic Strategies:


• Introduction to Algorithmic strategies
• Complexity of an Algorithm
• Efficiency of an algorithm
• Algorithm for Searching Techniques
• Sorting Techniques
• Dynamic programming
• Algorithmic Strategies: Points to remember
• Algorithmic Strategies: Book Back Questions and Answers

UNIT II: Core Python:


Chapter 5: Python Variables and Operators:


• Python Introduction
• Key features of Python
• Programming in Python
• Input and Output Functions
• Comments in Python
• Indentation
• Tokens
• Python Data types
• Python Variables and Operators: Points to remember
• Python Variables and Operators: Book Back Questions and Answers

Chapter 6: Control Structures:


• Introduction of Python Control Structures
• Python Control Structures
• Python Control Structures: Points to remember
• Python Control Structures: Book Back Questions and Answers

Chapter 7: Python Functions:


• Python Functions
• Types of Python Functions
• Defining Functions in Python
• Calling a Function
• Passing Parameters in Functions
• Function Arguments
• Anonymous Functions
• The return Statement
• Scope of Variables
• Functions using libraries
• Python recursive functions
• Python Functions: Points to remember
• Python Functions: Book Back Questions and Answers

Chapter 8: Strings and String Manipulation:


• Strings and String Manipulation - Introduction
• Creating Strings
• Accessing characters in a String
• Modifying and Deleting Strings
• String Operators
• String Formatting Operators
• Formatting characters
• The format( ) function
• Built-in String functions
• Membership Operators
• Programs using Strings
• Python Strings and String Manipulation: Points to remember
• Python Strings and String Manipulation: Book Back Questions and Answers

UNIT III: Python Modularity and OOPS:


Chapter 9: Lists, Tuples, Sets And Dictionary:


• Introduction to List
• Python Programs using List
• Introduction to Tuples
• Programs using Tuples
• Dictionaries
• Python Lists, Tuples, Sets And Dictionary: Points to remember
• Python Lists, Tuples, Sets And Dictionary : Book Back Questions and Answers

Chapter 10: Python Classes and Objects:


• Python Classes and Objects
• Defining classes
• Creating Objects
• Accessing Class Members
• Class Methods
• Constructor and Destructor in Python
• Public and Private Data Members
• Sample Python Programs to illustrate classes and objects
• Points to remember
• Python Classes and Objects: Book Back Questions and Answers


Problem Solving and Python Programming



UNIT I: COMPUTATIONAL THINKING AND PROBLEM SOLVING:


• Problem Solving Techniques
• Algorithm
• Building blocks of algorithms (statements, state, control flow, functions)
• Notation
• Flow chart
• Pseudo code
• programming language
• Categories of programming languages
• Algorithmic problem solving
• Simple Strategies For Developing Algorithms
• Examples algorithms: pseudo code, flow chart, programming language
• Basic python programs
• Python Algorithmic Problem Solving: short important questions and answers
• Python Algorithmic Problem Solving: brief important questions and answers

UNIT II: DATA TYPES, EXPRESSIONS, STATEMENTS:


• Introduction to Python
• Python interpreter
• Modes of Python Interpreter
• Values and Data Types
• Variables - Python
• Keywords - Python
• Identifiers - Python
• Statements and Expressions - Python
• Input and Output - Python
• Comments - Python
• Docstring - Python
• Lines and Indentation - Python
• Quotation in Python
• Tuple Assignment - Python
• Operators and Types of Operators - Python
• Operator Precedence - Python
• Functions - Python
• Types of function
• Function definition(Sub program) - Python
• Flow of Execution - Python
• Function Prototypes
• Parameters and Arguments - Python
• Modules - Python
• Python Programs - Data, Expressions, Statements
• Python Data, Expressions, Statements: short important questions and answers
• Python Data, Expressions, Statements: brief important questions and answers

UNIT III: CONTROL FLOW, FUNCTIONS, STRINGS:


• Boolean Values
• Conditionals - Python
• Iteration/Control Statements - Python
• Fruitful Function - Python
• Strings - Python
• List as array - Python
• Example Python Programs: Control Flow, Functions
• Python Control Flow, Functions: short important questions and answers
• Python Control Flow, Functions: brief important questions and answers

UNIT IV: LISTS, TUPLES, DICTIONARIES:


• Lists - Python
• Tuple - Python
• Dictionaries - Python
• Difference between List, Tuples and dictionary
• Advanced list processing - Python
• Python Programs on matrix
• Python Programs on Lists, Tuples, Dictionaries
• Python Lists, Tuples, Dictionaries: short important questions and answers
• Python Lists, Tuples, Dictionaries: brief important questions and answers

UNIT I : Algorithmic Problem Solving:


• Programming Algorithm
• Flowcharts
• Guidelines For Drawing a Flowchart
• Pseudocode
• Example Programming Algorithm, Pseudocode, Flowchart

UNIT II : Data Expressions Statements:


• What is a program?
• Python programming language
• Values and types - Python
• Expressions and statements - Python
• Python Tuple
• Python Strings
• Comments - Python
• Python Output Using print() function
• Modules - Python
• Python Import
• Operators and operands
• Type of operators in Python
• Functions - Python
• Flow of execution - Python
• Parameters and arguments - Python
• Python Basic Programs

UNIT III : Control Flow Functions:


• Conditionals - Python
• Recursion - Python
• Iteration - Python
• Fruitful Functions - Python
• Strings - Python
• Example Python Programs on Control Flow, Functions

UNIT IV : Lists Tuples Dictionaries:


• Lists - Python
• Tuples - Python
• Python dictionary
• Python Advanced list processing
• Example Python Programs on Lists, Tuples, Dictionaries

UNIT V : Files Modules Packages:


• Files - Python
• Exception - Python
• Modules - Python
• Package - Python
• Python Files, Modules, Packages: short important questions and answers
• Example Python Programs on Files, Modules, Packages