0% found this document useful (0 votes)
19 views24 pages

CSL 410 L06

Uploaded by

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

CSL 410 L06

Uploaded by

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

Program:B.

Tech(CSE) IV Semester II Year

CSL-410: Data Science using Python


Unit No. 1
Python for Data Science

Lecture No. 06

Dr. Sanjay Jain


Associate Professor, CSA/SOET
Outlines
• Why Python
• History of Python
• Coding Environment
• How to run Python
• References
Course Outcome
• CO.1: Understanding: Basic concept of Data science, applications areas
and tools for data science.
• CO.2: Applying: Implementation of Numpy for handling numerical data
and pandas for handling data from datafiles.
• CO.3: Analyzing: Analyze the domain of data, cleaning and preparing
the data for data science.
• CO.4: Evaluating: evaluate and summarize the data using statistical &
visualization tools;
• CO.5: Create: Create dataset for machine learning models. .
Why Python

• Python works on different platforms (Windows, Mac, Linux, Raspberry Pi,


etc).
• Downloading and installing Python is free and easy. Source code is easily
accessible
• Python has a simple syntax similar to the English language.
• Python has syntax that allows developers to write programs with fewer
lines than some other programming languages.
• Python runs on an interpreter system, meaning that code can be executed as
soon as it is written. This means that prototyping can be very quick.
• Python can be treated in a procedural way, an object-orientated way or a
functional way.

<CO: 1> <Reference No.: R1,R4>


Python History

• Python is developed under an OSI-approved open source license, making it


freely usable and distributable, even for commercial use. Python's license is
administered by the Python Software Foundation.
• Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl/) in the Netherlands
as a successor of a language called ABC. Guido remains Python’s principal
author, although it includes many contributions from others.

• According to the principal author (Guido van Rossum), he chose the name
"Python" because he is a big fan of the British comedy movie - 'Monty
Python's Flying Circus'

<CO: 1> <Reference No.: R1,R2>


Python Syntax vs other programming languages

• Python was designed to for readability, and has some similarities to the
English language with influence from mathematics.
• Python uses new lines to complete a command, as opposed to other
programming languages which often use semicolons or parentheses.
• Python relies on indentation, using whitespace, to define scope; such
as the scope of loops, functions and classes. Other programming
languages often use curly-brackets for this purpose.

<CO: 1> <Reference No.: R1,R4>


Coding Environment

<CO: 1> <Reference No.: R1,R3,R4>


7
Coding Environment

<CO: 1> <Reference No.: R1,R3,R4>


8
Running Python on command line
Once you're inside the Python command line interpreter, type in
commands.
• Examples:
>>> print 'Hello world'
Hello world
# Relevant output is displayed on subsequent lines without the >>>
symbol
>>> x = [0,1,2]
# Quantities stored in memory are not displayed by default
>>> x
# If a quantity is stored in memory, typing its name will display it
[0,1,2]
>>> 2+3
5

<CO: 1> <Reference No.: R1,R2>


Running Python on command line
How to Download Anaconda Python
• Anaconda is a free and open source distribution of the Python
for data science and machine learning related applications, that
aims to simplify package management and deployment.
– https://www.anaconda.com/download/
• Use Jupiter Notebook, Spider

– Google Colab online Jupiter Notebook


• https://colab.research.google.com/notebooks

<CO: 1> <Reference No.: R1,R2,R4>


Jupyter Notebook

<CO: 1> <Reference No.: R1,R3,R4>


12
Jupyter Notebook

<CO: 1> <Reference No.: R1,R3,R4>


13
How to Run Python in Jupiter Notebook
How to Run Python in Google Colab
Coding Environment IDE

<CO: 1> <Reference No.: R1,R3,R4>


16
Coding Environment IDE

<CO: 1> <Reference No.: R1,R3,R4>


17
Spyder

<CO: 1> <Reference No.: R1,R3,R4>


18
Spyder

<CO: 1> <Reference No.: R1,R3,R4>


19
Pycharm

<CO: 1> <Reference No.: R1,R3,R4>


20
Pycharm

<CO: 1> <Reference No.: R1,R3,R4>


21
Learning Outcomes

The students have learn and understand the followings:

•How to download the software's for python programming.

•How to work in python environment.


References

1. Anaconda for python softwares(Jupiter notebook and spider IDE)


https://www.anaconda.com/products/individual
2. Python software for windows
https://www.python.org/downloads/
3. Online Google python notebook
https://colab.research.google.com/notebooks
Thank you

You might also like