Python Data Analytics & Visualization

Slides:



Advertisements
Similar presentations
Guy Griffiths. General purpose interpreted programming language Widely used by scientists and programmers of all stripes Supported by many 3 rd -party.
Advertisements

How to enter the world of Python Programming for ArcGIS Or, a funny thing happened on the way from an ESRI conference By Katherine Paybins WVAGP Membership.
Intro to Python Welcome to the Wonderful world of GIS programing!
Contributing source code to CSDMS Albert Kettner.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Introduction to scripting
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Linux Operations and Administration
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Python From the book “Think Python”
Functions, Procedures, and Abstraction Dr. José M. Reyes Álamo.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
You Need an Interpreter!. Closing the GAP Thus far, we’ve been struggling to speak to computers in “their” language, maybe its time we spoke to them in.
2. WRITING SIMPLE PROGRAMS Rocky K. C. Chang September 10, 2015 (Adapted from John Zelle’s slides)
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
CSx 4091 – Python Programming Spring 2013 Lecture L2 – Introduction to Python Page 1 Help: To get help, type in the following in the interpreter: Welcome.
Quiz 3 Topics Functions – using and writing. Lists: –operators used with lists. –keywords used with lists. –BIF’s used with lists. –list methods. Loops.
Quiz 1 A sample quiz 1 is linked to the grading page on the course web site. Everything up to and including this Friday’s lecture except that conditionals.
PDF Accessibility with Python Anand B Pillai. A few terms ● Accessibility – *“Accessibility is a general term used to describe the degree to which a product,
Python Programming Module 1 Computers and Programs Python Programming, 2/e1.
PDF Accessibility with Python Anand B Pillai. A few terms Accessibility – *“Accessibility is a general term used to describe the degree to which a product,
How to Get Started With Python
Chapter 1: Introduction to Computers and Programming
Fundamentals of Programming I Overview of Programming
PH2150 Scientific Computing Skills
Development Environment
CST 1101 Problem Solving Using Computers
Introduction to Computing Science and Programming I
Inquiring and analyzing options for creating a website
Topic: Python’s building blocks -> Variables, Values, and Types
CSC391/691 Intro to OpenCV Dr. Rongzhong Li Fall 2016
Introduction to Eclipse
Python: Experiencing IDLE, writing simple programs
Learning to Program D is for Digital.
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Python
Introduction Python is an interpreted, object-oriented and high-level programming language, which is different from a compiled one like C/C++/Java. Its.
PYTHON: AN INTRODUCTION
Variables, Expressions, and IO
Basic operations in Matlab
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Hector Cen Fall 2017
Core WG Meeting November 16th, 2017.
Functions CIS 40 – Introduction to Programming in Python
Prepared by Kimberly Sayre and Jinbo Bi
SVTRAININGS. SVTRAININGS Python Overview  Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed.
How to enter the world of Python Programming for ArcGIS
VISUAL BASIC.
Introduction to Python
Functions, Procedures, and Abstraction
MBI 630: Week 11 Interface Design
CISC101 Reminders Assn 3 due tomorrow, 7pm.
WICS - Flappy Anteater Python Tutorial
BSc in Digital Media, PSUIC
Loops CIS 40 – Introduction to Programming in Python
Section 1 Introduction To Programming
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Introduction to Value-Returning Functions: Generating Random Numbers
CISC101 Reminders Assignment 3 due next Friday. Winter 2019
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
Microsoft Office Illustrated Fundamentals
CISC101 Reminders Assignment 3 due today.
Contributing source code to CSDMS
 A function is a named sequence of statement(s) that performs a computation. It contains  line of code(s) that are executed sequentially from top.
Visual Basic for Applications: Introduction
Using Modules.
Introduction to Python
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Python Data Analytics & Visualization Mohd Razif Bin Shamsuddin

Introduction to Python Getting Started Python can be easy to pick up whether you're a first time programmer or you're experienced with other languages. The following link pages are a useful first step to get on your way writing programs with Python! Beginner's Guide, Programmers Beginner's Guide, Non-Programmers Beginner's Guide, Download & Installation Code sample and snippets for Beginners

Why learn python? Friendly & Easy to Learn The community hosts conferences and meetups, collaborates on code, and much more. Python's documentation will help you along the way, and the mailing lists will keep you in touch. Applications The Python Package Index (PyPI) hosts thousands of third-party modules for Python. Both Python's standard library and the community-contributed modules allow for endless possibilities. Open-source 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.

There are two versions of python Short version: Python 2.x is legacy, Python 3.x is the present and future of the language PYTHON 3.6.1  Note that Python 3.5+ cannot be used on Windows XP or earlier. Python 2.7.13 There are some key issues that may require you to use Python 2 rather than Python 3. Firstly, if you're deploying to an environment you don't control, that may impose a specific version, rather than allowing you a free selection from the available versions. Secondly, if you want to use a specific third party package or utility that doesn't yet have a released version that is compatible with Python 3, and porting that package is a non-trivial task, you may choose to use Python 2 in order to retain access to that package. Python 3.0 was released in 2008. The final 2.x version 2.7 release came out in mid-2010, with a statement of extended support for this end-of-life release. The 2.x branch will see no new major releases after that. 3.x is under active development and has already seen over five years of stable releases, including version 3.3 in 2012, 3.4 in 2014, 3.5 in 2015, and 3.6 in 2016. This means that all recent standard library improvements, for example, are only available by default in Python 3.x. * Info from 10/7/2017

https://www.python.org /downloads/ Installer for python https://www.python.org /downloads/

Mohd Razif Bin Shamsuddin Learning the Syntax Mohd Razif Bin Shamsuddin

Basic Syntax (Cont.) # This program prints Hello, world!print('Hello, world!')

Basic Syntax (Cont.)

Basic Syntax (Cont.)

Python Input, Output and Import Python provides numerous built-in functions that are readily available to us at the Python prompt. Some of the functions like input() and print() are widely used for standard input and output operations respectively. Let us see the output section first.

Python Input, Output and Import Python Output Using print() function We use the print() function to output data to the standard output device (screen).

Python Input, Output and Import The actual syntax of the print() function is print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)

Python Input, Output and Import Up till now, our programs were static. The value of variables were defined or hard coded into the source code. To allow flexibility we might want to take the input from the user. In Python, we have the input() function to allow this. The syntax for input() is input([prompt])

Python Input, Output and Import where prompt is the string we wish to display on the screen. It is optional. >>> num = input('Enter a number: ') Enter a number: 10 >>> num '10‘

Python Input, Output and Import Python Import When our program grows bigger, it is a good idea to break it into different modules. A module is a file containing Python definitions and statements. Python modules have a filename and end with the extension .py. Definitions inside a module can be imported to another module or the interactive interpreter in Python. We use the import keyword to do this. For example, we can import the math module by typing in import math. import math print(math.pi)

Source Code Example (Cont.)

https://www.programiz.com/ python-programming Tutorial https://www.programiz.com/ python-programming

Hands on using Datacamp Mohd Razif Shamsuddin

Register your Accounts online. Go to: https://www.datacamp.com/

Data Visualization Mohd Razif Shamsuddin

10 Useful Python Data Visualization Libraries for Any Discipline Matplotlib Matplotlib was the first Python data visualization library, many other libraries are built on top of it or designed to work in tandem with it during analysis. Some libraries like pandas and Seaborn are “wrappers” over matplotlib. They allow you to access a number of matplotlib’s methods with less code.

10 Useful Python Data Visualization Libraries for Any Discipline Seaborn

10 Useful Python Data Visualization Libraries for Any Discipline Seaborn Seaborn harnesses the power of matplotlib to create beautiful charts in a few lines of code. The key difference is Seaborn’s default styles and color palettes, which are designed to be more aesthetically pleasing and modern. Since Seaborn is built on top of matplotlib, you’ll need to know matplotlib to tweak Seaborn’s defaults. Created by: Michael Waskom Where to learn more: http://web.stanford.edu/~mwaskom/software/seaborn/index.html

10 Useful Python Data Visualization Libraries for Any Discipline ggplot Created by: ŷhat Where to learn more: http://ggplot.yhathq.com/

10 Useful Python Data Visualization Libraries for Any Discipline Bokeh Created by:  Continuum Analytics Where to learn more: http://bokeh.pydata.org/en/latest/

10 Useful Python Data Visualization Libraries for Any Discipline pygal Created by:  Florian Mounier Where to learn more: http://www.pygal.org/en/latest/index.html

10 Useful Python Data Visualization Libraries for Any Discipline Plotly Created by: Plotly, Available in Mode Where to learn more: https://plot.ly/python/

10 Useful Python Data Visualization Libraries for Any Discipline Geoplotlib Created by: Andrea Cuttone Where to learn more: https://github.com/andrea-cuttone/geoplotlib

10 Useful Python Data Visualization Libraries for Any Discipline gleam Created by: David Robinson Where to learn more: https://github.com/dgrtwo/gleam

10 Useful Python Data Visualization Libraries for Any Discipline missingno Created by: Aleksey Bilogur Where to learn more: https://github.com/ResidentMario/missingno

10 Useful Python Data Visualization Libraries for Any Discipline leather Created by: Christopher Groskopf Where to learn more: http://leather.readthedocs.io/en/latest/index.html

Thank you Mohd Razif Shamsuddin