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

Final Week 1 Session-1

The document provides an introduction to Python programming. It discusses the basics of Python including: 1. An overview of what data and data science are with examples of structured and unstructured data. 2. The need for programming and how programming allows for more flexibility than non-programmatic systems. 3. Common arithmetic operations in Python like addition, subtraction, multiplication, and division as well as operator precedence. 4. The use of variables to store values and common Python data types like integers, floats, strings, booleans, lists, tuples, dictionaries and sets.

Uploaded by

rexdeus.laptop
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)
29 views36 pages

Final Week 1 Session-1

The document provides an introduction to Python programming. It discusses the basics of Python including: 1. An overview of what data and data science are with examples of structured and unstructured data. 2. The need for programming and how programming allows for more flexibility than non-programmatic systems. 3. Common arithmetic operations in Python like addition, subtraction, multiplication, and division as well as operator precedence. 4. The use of variables to store values and common Python data types like integers, floats, strings, booleans, lists, tuples, dictionaries and sets.

Uploaded by

rexdeus.laptop
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 Rajpuria
Edit Master text styles

2
PREREQUISITE FOR THIS SESSION

Download and install Anaconda/Jupyter Notebook before the session


SESSION - 1 AGENDA

What is Data and 1


Data Science?

Need for
2
Programming

Arithmetic
3
Operations

Variables and Data


4
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 in Cannot be displayed in


rows, columns and rows, columns and
relational database relational database

Numbers, dates and Images, audio, video,


strings word processing files e-
mails, spreadsheets

Estimated 20% of Estimated 80% of


enterprise data enterprise data
(Gartner) (Gartner)

Requiresless
lessstorage
storage Requires more storage
Requires

Easier to manage and More difficult to


protect with legacy manage and protect
solution 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 Engineering

Data
Science

Advanced
Visualization Computing
EVOLUTION OF DATA SCIENCE - EXAMPLE

Our decisions have


transformed from
Then came the
Now we have the getting data and
Earlier, travel websites that
websites that suggest taking action to the
websites used to just compared prices
destinations on basis action being
show the lowest from all the websites
of our budget as well recommended to us,
price available and showed the
as better days to followed by us
between destinations lowest available
travel deciding whether to
prices
go or not go ahead
with it
FUNDAMENTALS OF DATA SCIENCE

Business/Domain Mathematics Computer Science Communication


CRISP-DM FRAMEWORK

Business Data
Understanding Understanding

Data Preparation

Deployment

Data Modeling

Evolution
UNDERSTANDING CRISP-DM THROUGH THE PROGRAM
CURRICULUM

Data Visualisation SQL, Tableau


Business Data
Understanding Understanding

NLP, Linear Regression, Data Preparation


Statistics
Deployment

Data Modeling

Exploratory Data
System Designing and
Analysis, Analysis in
Deployment
Evolution
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 But because of
Can only book
quota of that station programming, two-
tickets from that
Stand in long queues Even if other way tickets can be
station and cannot
stations quota is not booked from
book return tickets
filled, we can not anywhere
reserve the tickets
PROGRAMMING LANGUAGES

Data science
Languages
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 Python code


throughout this program
 Simplifies package management 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

Numeric Complex 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 Science Python for data Science

Variables and Data Arithmetic Operators


Types and operator Precedence

You might also like