CD125 Python For DataScience
CD125 Python For DataScience
Course Objectives:
Course Outcomes:
After successful completion of the course, the students will be able to:
Course Content:
UNIT I
Basics of Python programming: Values and types, variables, Variable names and
keywords, operators and operands, expressions and statements, interactive mode and script
mode, order of operations, string operations, comments and debugging.
Conditionals, recursion and Iteration: Modulus operator, Boolean expressions, Logical
operators, conditional execution, alternative execution, chained conditionals, nested
conditionals, nested conditions, recursion, infinite recursion, keyboard input. Iterations-
Multiple assignment, updating variables, the while statement, break, square roots.
UNIT II
Functions: Function calls, type conversion functions, math functions, composition, adding
new functions, definitions and uses , flow of execution , parameters and arguments, variables
and parameters are local, fruitful functions – return values, incremental development,
composition, Boolean functions, more recursion, Leap of faith, checking types, and void
functions, Functions advantages.
Strings and Files: A string is a sequence, len, Traversal with a for loop, String slices, Strings
are immutable, Searching, Looping and counting, String methods, The in operator, String
comparison. Files: Persistence, Reading and writing, Format operator, File names and paths,
Catching exceptions, Databases, Pickling, Pipes, Writing modules.
UNIT III
Lists: List sequence, Lists are mutable, Traversing a list, List operations, List slices, List
methods, Map, Map, filter and reduce, deleting elements, List and strings , objects and
values, Aliasing, List arguments.
Dictionaries and Tuples: A dictionary is a mapping, Dictionary as a collection of
counters. Looping and dictionaries, Reverse lookup, Dictionaries and lists, Memos, Global
variables.
Tuples: Tuples are immutable, Tuple assignment, Tuples as return values, Variable-length
argument tuples ,Lists and tuples, Dictionaries and tuples.
UNIT IV
Pandas and NumPy: Numpy Basics - Fast Element wise array functions,
Multidimensional Array, Data Processing using arrays, file i/o with arrays;
Pandas - Data Structures, Essential Functionality, Summarizing and Computing
Descriptive Statistics, Handling Missing Data, Hierarchical Indexing
Learning Resources:
Text Book:
1. ThinkPython: How to Think Like a Computer Scientist, Allen Downey, Green Tea
Press, Version2.0.17
2. Python for Data Analysis, 2nd Edition , by Wes Mckinney Publisher(s): O'Reilly
Media, Inc. ISBN: 9781491957660
Reference Books: