SlideShare a Scribd company logo
Introduction Of Python In Data Science
Python As A Data Science Tool
Python is an open-source high-level programming language catered to general-purpose
programming. It is instrumental for both IT-related projects as well as the analytical ones. Let’s
study python language in detail.
History
Python was conceived in the year 1980 by Guido Rossum at Centrum Wiskunde and
Informatica (CWI) institute as a worthy successor to the ABC language. ABC language was
itself a powerful language during the 90s, capable of handling and interfacing with the Amoeba
operating system. Python was initially executed in December 1989.
Guido Rossum, the guy brain behind Python Programming Language
Python is a multi-paradigm programming language. It supports both, object-oriented
programming as well as structured programming. Many of its operations support functional and
aspect-oriented programming.
Rather than having all of its functionalities constructed into its core, Python was designed to be
highly extensible. For starters, Van Rossum's created Python with the vision of building a small
startup language coupled with a large library of packages and easily extensible interpreter.
Python Versions
Python 2.0 was released in 2000 with many major changes, including a garbage collector and
support for Unicode.
The next version, 3.0 was published in 2008. It was a major update of the language that was not
completely backward-compatible during its application. Many of its major features were reverse-
ported to Python 2.6 and 2.7 version series.
Currently, Python 3.7.1 is the latest stable platform which everyone from freshers to
experienced professionals is using.
Features
Flexible/Portable
Python is an open-source language. Naturally, it has been ported to many platforms. All python
programs will work on any of these platforms without requiring to make any major or minor
changes in the code.
Python can be used on Linux, Windows, Macintosh, PlayStation and can also be operated on
PocketPCs!
Freely available and open source
Python is free of cost and is available for distribution in the open. One can make duplicates of
this software, hack the software's source code and make changes to it. This is one of the
reasons why Python is so clean and consistent, it has been guarded and looked after by a
community who just want to see a better and improved version of python daily!
Support
Due to its vast online community, python is marketed as the best programming language till
date. Its constant support and regular updates for users and administrators make it dependable
and easy to use over other languages.
Easy to master
Compared to Java or any other languages, it is easy to learn and grasp python at the beginners
level. For those who want to build applications and deploy them on the cloud, python is the
preferred language.
Dynamic
Python is a strong-dynamically typed language. Dynamically typed means the variables are
taken care and won’t conflict with each other.
Semantics/Syntax
Indentation
Python utilizes whitespace indentation and not curly brackets or keywords to limit the code
blocks. An increase in indentation will only occur after certain statements; a decrease in
indentation indicates the end of the existing code block.
The program's visual structure represents the semantic structure of the code. This feature is
also sometimes called as the off-side rule.
Statements and control flow
We work with control flow and statements all the time for input for sort of algorithm. Let’s see the
common ones.
If statement- It executes a block of code based on a condition, along with else and else-if
For statement- It creates an iteration over an iterable object, storing each element to a local
variable for use by the predefined block.
While statement- It performs the block of code as long as the predetermined condition is true.
Try catch statement- It allows the exceptions to be raised in its code block to be caught and
handled by except clauses.
Raise statement- It is used to raise a particular exception or raise it again to a catch an
exception.
Expressions
Addition, subtraction, multiplication, and division operations can be easily performed in python.
The division is a bit different compared to others. It has two types. They are floor division and
integer division.
Python uses the ** operator for exponentiation function.
From Python 3.5, the new ‘@’ operator was introduced. It is called infix. It is intended to be used
by the libraries like NumPy for matrix multiplication in machine learning.
Python also incorporates the words and, or, not for its boolean operators rather than the
symbols- &&, ||, ! which are used in Java and C.
We don't require to declare integers after importing the libraries in python. Specifying the integer
and its datatype is mandatory in C and Java.
Method
Methods are like functions attached to the object's class. The syntax is quite simple and is
dignified by instance.method(argument) for normal methods and functions. Python has an inbuilt
engine to access instance data, compared to the implicit self (or this) in some other object-
oriented programming languages.
Typing
Python allows avid coders to define their own typing techniques and methods using classes,
often instrumental for object-oriented programming. Different instances of classes can be
created by calling the class, for instance, the SpamClass().
As python uses duck typing, it consists of both, typed objects and untyped variable names.
Libraries
Tons of libraries are available for surplus functionality, to say the least. Pythons biggest strength
lies in its toolkits and libraries. It includes libraries for creating graphical user interfaces(GUI),
establishing a connection to relational databases, generating pseudo-random numbers,
performing arithmetic operations with arbitrary precision decimals, changing regular
expressions, plus unit testing.
Implementation
There are some neat implementations in python.
CPython is the primary implementation of Python. It is written in C, having the C89 standard and
a few C99 features. It compiles all the python programs to an intermediate bytecode which is
later executed by its virtual machine. Windows and most modern Unix-like systems support this
implementation.
After going through the tiring process of understanding and decoding python, we can take a
break from the technical stuff and focus on the good part! These are some of the factors why
python is way ahead of its competition.

More Related Content

What's hot (19)

PDF
Python: the Project, the Language and the Style
Juan-Manuel Gimeno
 
PPTX
Python | What is Python | History of Python | Python Tutorial
QA TrainingHub
 
PDF
Python quick guide1
Kanchilug
 
PPTX
Introduction to Python Basics Programming
Collaboration Technologies
 
PPT
Introduction to phython programming
ASIT Education
 
PPTX
Getting Started with Python
Sankhya_Analytics
 
PDF
Introduction to python
Learnbay Datascience
 
PPTX
11 Unit1 Chapter 1 Getting Started With Python
Praveen M Jigajinni
 
PPTX
Phython Programming Language
R.h. Himel
 
PDF
Python for the Mobile and Web
Derek Kiong
 
PPTX
Python and its Applications
Abhijeet Singh
 
PDF
Python unit1
charvi parth Lastpatel
 
PPT
Cmpe202 01 Research
vladimirkorshak
 
PPTX
Introduction python
Jumbo Techno e_Learning
 
PDF
summer training report on python
Shubham Yadav
 
PPTX
Python Tutorial Part 2
Haitham El-Ghareeb
 
PDF
Introduction to Python
DrMohammed Qassim
 
PPTX
Python Programming
shahid sultan
 
PPTX
Python programming | Fundamentals of Python programming
KrishnaMildain
 
Python: the Project, the Language and the Style
Juan-Manuel Gimeno
 
Python | What is Python | History of Python | Python Tutorial
QA TrainingHub
 
Python quick guide1
Kanchilug
 
Introduction to Python Basics Programming
Collaboration Technologies
 
Introduction to phython programming
ASIT Education
 
Getting Started with Python
Sankhya_Analytics
 
Introduction to python
Learnbay Datascience
 
11 Unit1 Chapter 1 Getting Started With Python
Praveen M Jigajinni
 
Phython Programming Language
R.h. Himel
 
Python for the Mobile and Web
Derek Kiong
 
Python and its Applications
Abhijeet Singh
 
Cmpe202 01 Research
vladimirkorshak
 
Introduction python
Jumbo Techno e_Learning
 
summer training report on python
Shubham Yadav
 
Python Tutorial Part 2
Haitham El-Ghareeb
 
Introduction to Python
DrMohammed Qassim
 
Python Programming
shahid sultan
 
Python programming | Fundamentals of Python programming
KrishnaMildain
 

Similar to introduction of python in data science (20)

PPTX
Python programming ppt.pptx
nagendrasai12
 
PPTX
PYTHON UNIT 1
nagendrasai12
 
PPTX
Python Class 1
arijit banerjee
 
PPTX
2024-25 TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
sangeeta borde
 
PDF
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
PDF
Introduction to Python
SudhanshiBakre1
 
PPTX
Introduction to Python Programming Basics
Dhana malar
 
PDF
summer t.pdf
RITVIKKAPOOR10
 
PDF
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
Sana Khan
 
PPTX
pengenalan python apa itu python untuk apa.pptx
aftaf3
 
PPTX
Introduction to Python.pptx
SamyakJain461
 
PDF
Introduction-To-Python- a guide to master
ImadM4
 
PPTX
What is python
faizrashid1995
 
PPTX
An Introduction To Python - Python, Print()
Blue Elephant Consulting
 
PPT
1-ppt-python.ppt
ssusera99a83
 
PPTX
Python.pptx
abclara
 
PPTX
Introduction to Python – Learn Python Programming.pptx
HassanShah396906
 
PPTX
A Brief Introduction to Python - English
Devashish Negi
 
DOCX
Python Programming and ApplicationsUnit-1.docx
Manohar k
 
PPT
Python for students step by step guidance
MantoshKumar79
 
Python programming ppt.pptx
nagendrasai12
 
PYTHON UNIT 1
nagendrasai12
 
Python Class 1
arijit banerjee
 
2024-25 TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
sangeeta borde
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
Introduction to Python
SudhanshiBakre1
 
Introduction to Python Programming Basics
Dhana malar
 
summer t.pdf
RITVIKKAPOOR10
 
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
Sana Khan
 
pengenalan python apa itu python untuk apa.pptx
aftaf3
 
Introduction to Python.pptx
SamyakJain461
 
Introduction-To-Python- a guide to master
ImadM4
 
What is python
faizrashid1995
 
An Introduction To Python - Python, Print()
Blue Elephant Consulting
 
1-ppt-python.ppt
ssusera99a83
 
Python.pptx
abclara
 
Introduction to Python – Learn Python Programming.pptx
HassanShah396906
 
A Brief Introduction to Python - English
Devashish Negi
 
Python Programming and ApplicationsUnit-1.docx
Manohar k
 
Python for students step by step guidance
MantoshKumar79
 
Ad

More from bhavesh lande (20)

PDF
The Annual G20 Scorecard – Research Performance 2019
bhavesh lande
 
PDF
information control and Security system
bhavesh lande
 
PDF
information technology and infrastructures choices
bhavesh lande
 
PDF
ethical issues,social issues
bhavesh lande
 
PDF
managing inforamation system
bhavesh lande
 
PDF
• E-commerce, e-business ,e-governance
bhavesh lande
 
PDF
IT and innovations
bhavesh lande
 
PDF
organisations and information systems
bhavesh lande
 
PDF
IT stratergy and digital goods
bhavesh lande
 
PDF
Implement Mapreduce with suitable example using MongoDB.
bhavesh lande
 
PDF
aggregation and indexing with suitable example using MongoDB.
bhavesh lande
 
PDF
Unnamed PL/SQL code block: Use of Control structure and Exception handling i...
bhavesh lande
 
PDF
database application using SQL DML statements: all types of Join, Sub-Query ...
bhavesh lande
 
PDF
database application using SQL DML statements: Insert, Select, Update, Delet...
bhavesh lande
 
PDF
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
bhavesh lande
 
PDF
working with python
bhavesh lande
 
PDF
applications and advantages of python
bhavesh lande
 
PDF
tools
bhavesh lande
 
PDF
data scientists and their role
bhavesh lande
 
PDF
applications
bhavesh lande
 
The Annual G20 Scorecard – Research Performance 2019
bhavesh lande
 
information control and Security system
bhavesh lande
 
information technology and infrastructures choices
bhavesh lande
 
ethical issues,social issues
bhavesh lande
 
managing inforamation system
bhavesh lande
 
• E-commerce, e-business ,e-governance
bhavesh lande
 
IT and innovations
bhavesh lande
 
organisations and information systems
bhavesh lande
 
IT stratergy and digital goods
bhavesh lande
 
Implement Mapreduce with suitable example using MongoDB.
bhavesh lande
 
aggregation and indexing with suitable example using MongoDB.
bhavesh lande
 
Unnamed PL/SQL code block: Use of Control structure and Exception handling i...
bhavesh lande
 
database application using SQL DML statements: all types of Join, Sub-Query ...
bhavesh lande
 
database application using SQL DML statements: Insert, Select, Update, Delet...
bhavesh lande
 
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
bhavesh lande
 
working with python
bhavesh lande
 
applications and advantages of python
bhavesh lande
 
data scientists and their role
bhavesh lande
 
applications
bhavesh lande
 
Ad

Recently uploaded (20)

PPTX
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
PPTX
BinarySearchTree in datastructures in detail
kichokuttu
 
PDF
Unlocking Insights: Introducing i-Metrics Asia-Pacific Corporation and Strate...
Janette Toral
 
PDF
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
PPTX
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
PPTX
Comparative Study of ML Techniques for RealTime Credit Card Fraud Detection S...
Debolina Ghosh
 
PDF
A GraphRAG approach for Energy Efficiency Q&A
Marco Brambilla
 
PDF
apidays Singapore 2025 - Surviving an interconnected world with API governanc...
apidays
 
PPTX
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
PPTX
01_Nico Vincent_Sailpeak.pptx_AI_Barometer_2025
FinTech Belgium
 
PPTX
美国史蒂文斯理工学院毕业证书{SIT学费发票SIT录取通知书}哪里购买
Taqyea
 
PDF
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
PPTX
big data eco system fundamentals of data science
arivukarasi
 
PDF
Technical-Report-GPS_GIS_RS-for-MSF-finalv2.pdf
KPycho
 
PDF
Data Science Course Certificate by Sigma Software University
Stepan Kalika
 
PDF
Optimizing Large Language Models with vLLM and Related Tools.pdf
Tamanna36
 
PDF
apidays Singapore 2025 - Streaming Lakehouse with Kafka, Flink and Iceberg by...
apidays
 
PDF
The Best NVIDIA GPUs for LLM Inference in 2025.pdf
Tamanna36
 
PDF
Research Methodology Overview Introduction
ayeshagul29594
 
PDF
Group 5_RMB Final Project on circular economy
pgban24anmola
 
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
BinarySearchTree in datastructures in detail
kichokuttu
 
Unlocking Insights: Introducing i-Metrics Asia-Pacific Corporation and Strate...
Janette Toral
 
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
Comparative Study of ML Techniques for RealTime Credit Card Fraud Detection S...
Debolina Ghosh
 
A GraphRAG approach for Energy Efficiency Q&A
Marco Brambilla
 
apidays Singapore 2025 - Surviving an interconnected world with API governanc...
apidays
 
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
01_Nico Vincent_Sailpeak.pptx_AI_Barometer_2025
FinTech Belgium
 
美国史蒂文斯理工学院毕业证书{SIT学费发票SIT录取通知书}哪里购买
Taqyea
 
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
big data eco system fundamentals of data science
arivukarasi
 
Technical-Report-GPS_GIS_RS-for-MSF-finalv2.pdf
KPycho
 
Data Science Course Certificate by Sigma Software University
Stepan Kalika
 
Optimizing Large Language Models with vLLM and Related Tools.pdf
Tamanna36
 
apidays Singapore 2025 - Streaming Lakehouse with Kafka, Flink and Iceberg by...
apidays
 
The Best NVIDIA GPUs for LLM Inference in 2025.pdf
Tamanna36
 
Research Methodology Overview Introduction
ayeshagul29594
 
Group 5_RMB Final Project on circular economy
pgban24anmola
 

introduction of python in data science

  • 1. Introduction Of Python In Data Science Python As A Data Science Tool Python is an open-source high-level programming language catered to general-purpose programming. It is instrumental for both IT-related projects as well as the analytical ones. Let’s study python language in detail. History Python was conceived in the year 1980 by Guido Rossum at Centrum Wiskunde and Informatica (CWI) institute as a worthy successor to the ABC language. ABC language was itself a powerful language during the 90s, capable of handling and interfacing with the Amoeba operating system. Python was initially executed in December 1989. Guido Rossum, the guy brain behind Python Programming Language Python is a multi-paradigm programming language. It supports both, object-oriented programming as well as structured programming. Many of its operations support functional and aspect-oriented programming. Rather than having all of its functionalities constructed into its core, Python was designed to be highly extensible. For starters, Van Rossum's created Python with the vision of building a small startup language coupled with a large library of packages and easily extensible interpreter.
  • 2. Python Versions Python 2.0 was released in 2000 with many major changes, including a garbage collector and support for Unicode. The next version, 3.0 was published in 2008. It was a major update of the language that was not completely backward-compatible during its application. Many of its major features were reverse- ported to Python 2.6 and 2.7 version series. Currently, Python 3.7.1 is the latest stable platform which everyone from freshers to experienced professionals is using. Features Flexible/Portable Python is an open-source language. Naturally, it has been ported to many platforms. All python programs will work on any of these platforms without requiring to make any major or minor changes in the code. Python can be used on Linux, Windows, Macintosh, PlayStation and can also be operated on PocketPCs! Freely available and open source Python is free of cost and is available for distribution in the open. One can make duplicates of this software, hack the software's source code and make changes to it. This is one of the reasons why Python is so clean and consistent, it has been guarded and looked after by a community who just want to see a better and improved version of python daily! Support Due to its vast online community, python is marketed as the best programming language till date. Its constant support and regular updates for users and administrators make it dependable and easy to use over other languages. Easy to master Compared to Java or any other languages, it is easy to learn and grasp python at the beginners level. For those who want to build applications and deploy them on the cloud, python is the preferred language. Dynamic Python is a strong-dynamically typed language. Dynamically typed means the variables are taken care and won’t conflict with each other. Semantics/Syntax Indentation Python utilizes whitespace indentation and not curly brackets or keywords to limit the code blocks. An increase in indentation will only occur after certain statements; a decrease in indentation indicates the end of the existing code block. The program's visual structure represents the semantic structure of the code. This feature is also sometimes called as the off-side rule.
  • 3. Statements and control flow We work with control flow and statements all the time for input for sort of algorithm. Let’s see the common ones. If statement- It executes a block of code based on a condition, along with else and else-if For statement- It creates an iteration over an iterable object, storing each element to a local variable for use by the predefined block. While statement- It performs the block of code as long as the predetermined condition is true. Try catch statement- It allows the exceptions to be raised in its code block to be caught and handled by except clauses. Raise statement- It is used to raise a particular exception or raise it again to a catch an exception. Expressions Addition, subtraction, multiplication, and division operations can be easily performed in python. The division is a bit different compared to others. It has two types. They are floor division and integer division. Python uses the ** operator for exponentiation function. From Python 3.5, the new ‘@’ operator was introduced. It is called infix. It is intended to be used by the libraries like NumPy for matrix multiplication in machine learning. Python also incorporates the words and, or, not for its boolean operators rather than the symbols- &&, ||, ! which are used in Java and C. We don't require to declare integers after importing the libraries in python. Specifying the integer and its datatype is mandatory in C and Java. Method Methods are like functions attached to the object's class. The syntax is quite simple and is dignified by instance.method(argument) for normal methods and functions. Python has an inbuilt engine to access instance data, compared to the implicit self (or this) in some other object- oriented programming languages. Typing Python allows avid coders to define their own typing techniques and methods using classes, often instrumental for object-oriented programming. Different instances of classes can be created by calling the class, for instance, the SpamClass(). As python uses duck typing, it consists of both, typed objects and untyped variable names.
  • 4. Libraries Tons of libraries are available for surplus functionality, to say the least. Pythons biggest strength lies in its toolkits and libraries. It includes libraries for creating graphical user interfaces(GUI), establishing a connection to relational databases, generating pseudo-random numbers, performing arithmetic operations with arbitrary precision decimals, changing regular expressions, plus unit testing. Implementation There are some neat implementations in python. CPython is the primary implementation of Python. It is written in C, having the C89 standard and a few C99 features. It compiles all the python programs to an intermediate bytecode which is later executed by its virtual machine. Windows and most modern Unix-like systems support this implementation. After going through the tiring process of understanding and decoding python, we can take a break from the technical stuff and focus on the good part! These are some of the factors why python is way ahead of its competition.