Contents
Python Programming
For Data Science
History and Overview of Python
Basic features of Python
Free Software
Download Resources
Limitations of Python
Benefits Resources
Chapter 1 Getting Start with Python
1.1 basic Syntax
Lines and Indentation
Multi-Line Statements
Quotation in Python
Multiple Statements on a Single Line
Read data from user
1.2 Declaring Variable and Assigning Values
Multiple assign
Variable names and keywords
Statements and Expressions
1.3 Basic Operators in python
Arithmetic Operators
Relational Operators
Assign Operators
Logical Operators
1.4 Python Comments
1.5 Formatted strings
Conversion types
The replacement field {}
1.6 The Date and time module
Time Module Methods
Python Calendar module
1.7 Exercises and answers
Chapter 2
Control Statements
2.1 If statement
2.2 Iterations
2.2.1 Loop Control Statements
2.3 Try and except
2.4 Exercises and answers
Chapter 3
String Processing
3.1 String Special Operators
3.2 string slicing and concatenation
string conversions and formatting symbols
3.3 Loop through string
3.4 Python String Functions and Methods
The in operator
3.5 parsing and extracting string
3.6 Exercises and answers
Chapter 4
Functions & Module
4.1 user defined functions
Defining a Function
Invoking a Python Function
Python Function return Statement
Passing Parameters
4. built-in functions
Type conversion functions
4.3 Random numbers function
4.4 Math functions
4.5 Python Anonymous Function
Scope of Variable:
4.6 Create Python Modules
Create and Importing a Module:
A. Using import statement:
B. Use the From ….. import statement:
C. Use Built in Modules in Python:
D. Import and use Python Packages
4.7 Exercises and answers
Chapter 5
Data Collections Structure
5.1 Lists
Create lists
Accessing Values in Lists
add and Update Lists
Delete List Elements
Basic List Operations
Indexing, Slicing, and matrices
Built-in List Functions & Methods
list methods
List sorting and Traversing
Lists and strings
Parsing lines
Aliasing
5.2 Dictionaries
create Dictionaries
Updating and Accessing Values in Dictionary
Delete Dictionary Elements
Built-in Dictionary Functions & Methods
5.3 Tuples
Create tuples
Updating Tuples
Accessing Values in Tuples
Basic Tuples Operations
5.4 Exercises and answers
Chapter 6
File I/O processing & Regular expressions
6.1 File I/O processing
6.1.1 Screen in/out processing
6.1.2 Opening and Closing Files
6.1.3 The file Object Attributes
6.1.4 Reading and Writing Files
6.1.5 Directories in Python
6.2 Regular expressions
6.2.1 Regular Expression Patterns
6.2.2 Special Character Classes
6.2.3 Repetition Cases
Alternatives
Anchors
6.3 Exercises and answers
Chapter 7
Data Gathering and Cleaning
7.1 Data cleaning
Check missing values
Handle the missing values
7.2 Read and clean CSV File
7.3 Data Integration
7.4 Read the JSON File
7.5 Reading the HTML file
7.6 Exercises and answers
Chapter 8
Data Exploring and Analysis
8.1 Series data structure
8.1.1 Create a Series
8.1.2 Accessing Data from Series with Position
8.2 DataFrame data structure
8.2.1 Create a DataFrame.
8.2.2 Updating and Accessing DataFrame.
Column Selection
Column Addition
Column Deletion
Row Selection
Row Addition
Row Deletion
8.3 Panel data structure
8.3.1 Create a Panel
8.3.2 Accessing Data from Panel with Position
8.4 data analysis
8.4.1 statistical analysis
8.4.2 data grouping
Iterating through Groups
Aggregations
Transformations
Filtration
8.5Exercises and answers
Chapter 9
Data Visualization
9.1 direct plotting
Line plotting
Bar plotting
Pie Chart
Box Plotting
Histogram Plotting
A scatterplot
9.2 Seaborn Plotting system
strip plotting
boxplot
swarmplot
jointplot
9.3 Matplotlib plotting
Line plotting
Bar chart
histogram plotting
Scatter plot
Stack Plots
pie chart
9.4Exercises
Chapter 10 Case Study
Reference