Name of Institution
Amity Law College
Course Title: Data Visualisation for New Age Managers
Course Code: CSIT245
Course Level : UG
Module IV: Data Visualization in Python
Weightage -25%
By - Jitendra K Sharma
1
Name of Institution
Module IV: Data Visualization in
Python
Table of
Content Matplotlib for visualization
Pandas Visualization
Seaborn Visualization
Use Case
Project Work#4
2
Name of Institution
• Python is an easy to learn, powerful
programming language. It has
efficient high-level data structures
and a simple but effective approach
to object-oriented programming.
Python’s elegant syntax and
dynamic typing, together with its
interpreted nature, make it an ideal
language for scripting and rapid
application development in many
areas on most platforms.
3
Data Visualization - Charts
Name of Institution
4
Name of Institution
Installation of
Python, NumPy, pandas, seaborn & matplotlib
• Installation of Python - open https://www.python.org
• Logged in Administrator - or right click on CMD and then run, installations.
– Select 32bit python setup.
• After the installation check Python version
• Open CMD run command : >python –-version or py –-version
• To check pip version : >python –m pip –version
• Installation matplotlib - >py –m pip install matplotlib
• Installation of NumPy (the Python Library)
• Open Command Prompt & run
• >py –m pip install numpy
• Upgrade pip >py –m pip install –upgrade pip
• Installation of pandas - >py –m pip install pandas
• https://pandas.pydata.org/
• Installation of seaborn - >py –m pip install seaborn
5
Installation of PythonName of Institution
• History of Python
• https://docs.python.org/3/license.html
• Installing Python
• https://www.python.org/downloads/
• https://www.python.org/downloads/release/python-3100/
6
Installing - Python Name of Institution
The Python Tutorial — Python 3.10.0 docu
mentation
7
Name of Institution
Python –
3rd Party
8
Name of Institution
Task – 1
Installation of
Python, - Anaconda
NumPy,
pandas,
seaborn
matplotlib
9
Matplotlib for visualization
Name of Institution
Matplotlib is used for visualization using python
https://matplotlib.org/
10
Name of Institution
Installing matplotlib
11
Name of Institution
Seaborn – Statistical Data Visualization
Seaborn is a Python data visualization library based
on matplotlib. It provides a high-level interface for
drawing attractive and informative statistical graphics.
• https://seaborn.pydata.org/
• https://seaborn.pydata.org/examples/index.html
12
Pandas Name of Institution
pandas is a Python package providing fast, flexible, and
expressive data structures designed to make working with
“relational” or “labeled” data both easy and intuitive. It aims
to be the fundamental high-level building block for doing
practical, real-world data analysis in Python.
• Getting started — pandas 1.3.3 documentation (pydata.org)
• Getting started tutorials — pandas 1.3.3 documentation (pydata.org)
13
Steps to install Matplotlib Name of Institution
14
PIP Installation - Task Name of Institution
15
Name of Institution
Python - Anaconda
16
Name of Institution
Task – 2
Creation of Charts
using
Python, - Anaconda
NumPy,
Matplotlib – Cheat
Sheet
17
Anaconda – Python Console Name of Institution
18
Name of Institution
Matplotlib is a
python 2D plotting http://matplotlib.or
library which g
Matplotlib produces publication
quality figures in a
• Seamless integration with
other packages in the
Python Data Stack.
for variety of hardcopy
formats and
• Anatomy of Matplotlib
figures
visualization interactive
environments across
• Basic Plot, labels, titles,
markers and water marks
• Figures, axes, subplot
platforms.
19
Name of Institution
Example of a Chart Using Python IDE -
Matplotlib
20
Matplotlib – Practice Codes
Name of Institution
21