Final Week 1 Session-1
Final Week 1 Session-1
Introduction to Python
Lecture on: Basics of
Python
Instructor: Akash
Edit Master text styles
Rajpuria
2
PREREQUISITE FOR THIS SESSION
What is Data
and Data 1
Science?
Need for
2
Programming
Arithmetic
3
Operations
Variables and
4
Data Types
A Lot of Coding
Practice
What is Data and Data
Science?
WHAT ALL CAN YOU SEE IN THE IMAGE?
WHAT IS DATA?
What is data?
Quantities
Numbers Information
What is
Facts Data? Graphs
Observations Measurement
SO…..
TYPES OF DATA
Requiresless
less Requires more
Requires
storage storage
storage
Domain
Expertise
Data
Statistics Engineeri
ng
Data
Scienc
e
Advance
Visualizatio d
n Computin
g
EVOLUTION OF DATA SCIENCE - EXAMPLE
Our decisions
have
transformed
Then came the Now we have
Earlier, travel from getting
websites that the websites
websites used to data and taking
compared prices that suggest
just show the action to the
from all the destinations on
lowest price action being
websites and basis of our
available recommended
showed the budget as well
between to us, followed
lowest available as better days
destinations by us deciding
prices to travel
whether to go or
not go ahead
with it
FUNDAMENTALS OF DATA SCIENCE
Business Data
Understandi Understandi
ng ng
Data
Preparation
Deployment
Data Modeling
Evolution
UNDERSTANDING CRISP-DM THROUGH THE PROGRAM
CURRICULUM
NLP, Linear
Data
Regression, Preparation
Statistics Deployment
Data Modeling
Exploratory Data
System Designing
Analysis, Analysis
and Deployment
Evolution
in Excel
Poll 2 (15 Sec)
In a quest to increase the number of users on the platform, a
company offers discounts aggressively, resulting in huge revenue
leakage and dwindling profit margins. What would be your first
step as a data scientist/analyst?
Data Understanding
Modeling
Understanding the business
problem
Poll 2 (Answer)
In a quest to increase the number of users on the platform, a
company offers discounts aggressively, resulting in huge revenue
leakage and dwindling profit margins. What would be your first
step as a data scientist/analyst?
Data Understanding
Modeling
Understanding the business
problem
Need For
Programming
?
NEED FOR PROGRAMMING - EXAMPLE
Railway Ticket Booking System
Can reserve
railway tickets
only from the
Can only book But because of
quota of that
tickets from that programming,
Stand in long station Even if
station and two-way tickets
queues other stations
cannot book can be booked
quota is not
return tickets from anywhere
filled, we can
not reserve the
tickets
PROGRAMMING LANGUAGES
Data
science
Languag
es
WHY PYTHON FOR DATA SCIENCE?
Simple syntax
Multiple libraries for data
science applications
GETTING STARTED WITH PYTHON
Floor division
Arithmetic Operations:
Demo
OPERATOR PRECEDENCE
Poll 3 (20 Sec)
Solve the expression given below on the basis of your
understanding of operator precedence.
print (6 * 2 // 3)
2
4
12
Poll 3 (Answer)
Solve the expression given below on the basis of your
understanding of operator precedence.
print (6 * 2 // 3)
2
4
12
Variables and Data Types
VARIABLES
There is a need to store the value obtained after the computation to be used
later, and this is when variables come into play
DATA TYPES
Complex
Numeric
Number
Dictionary Float
Python
Data Boolean
Types
Set Strings
Tuple
EXAMPLES OF DATA
Integer 35462216
Floating-point 0.002756
Char H
Boolean True
SUMMARY OF SESSION 1
Arithmetic
Variables and Data Operators and
Types operator
Precedence