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

Final Week 1 Session-1

Uploaded by

ether2980
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views36 pages

Final Week 1 Session-1

Uploaded by

ether2980
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 36

#LifeKoKaroLift

Introduction to Python
Lecture on: Basics of
Python
Instructor: Akash
Edit Master text styles
Rajpuria

2
PREREQUISITE FOR THIS SESSION

Download and install Anaconda/Jupyter Notebook before the


session
SESSION - 1 AGENDA

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

Structured Data Unstructured Data

Can be displayed Cannot be


in rows, columns displayed in rows,
and relational columns and
database relational
database
Numbers, dates Images, audio,
and strings video, word
processing files e-
mails,
spreadsheets
Estimated 20% of Estimated 80% of
enterprise data enterprise data
(Gartner) (Gartner)

Requiresless
less Requires more
Requires
storage storage
storage

Easier to manage More difficult to


and protect with manage and
legacy solution protect with
legacy solutions
Poll 1 (15 Sec)
Under which of the following categories of data does a user
complaint received by any organisation come?
 Structured
 Unstructured
Poll 1 (Answer)
Under which of the following categories of data does a user
complaint received by any organisation come?
 Structured
 Unstructured
WHAT IS DATA SCIENCE?

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/Domain Mathematics Computer Communication


Science
CRISP-DM FRAMEWORK

Business Data
Understandi Understandi
ng ng

Data
Preparation

Deployment

Data Modeling

Evolution
UNDERSTANDING CRISP-DM THROUGH THE PROGRAM
CURRICULUM

Data Visualisation SQL, Tableau


Business Data
Understandi Understandi
ng ng

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

Anaconda Jupyter Notebook

 Open-Source distribution  Main environment for writing


 Simplifies package management Python code throughout this
program
and deployment
 Can write both code and normal
text in the Notebooks
 Notebooks are easy to read and
share
Jupyter Notebook
Walk-Through:
Demo
WRITE YOUR FIRST PROGRAM IN PYTHON
Arithmetic
Operations
ARITHMETIC OPERATIONS AND OPERATOR PRECEDENCE
Python Arithmetic Operators

Addition (+) % Modulus

Subtraction (-) (/) Division

Multiplication (*) (**) Exponentiation


(//)

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

 A classification that specifies


 The type of value a variable has, and
 The type of mathematical, relational or logical operations that can be
applied to it without causing an error
Integer

Complex
Numeric
Number

Dictionary Float
Python
Data Boolean
Types
Set Strings

Sequence Type List

Tuple
EXAMPLES OF DATA

Common data types

Data type Example value

Integer 35462216

Floating-point 0.002756

Char H

String Hello, World!

Boolean True
SUMMARY OF SESSION 1

Data and Data Python for data


Science Science

Arithmetic
Variables and Data Operators and
Types operator
Precedence

You might also like