SlideShare a Scribd company logo
Data Visualization
with Python
Nhi Nguyen
Pre-Workshop Checklist
⬡ This is pretty obvious…. but do you have your laptop with you? If
you don’t…. Perhaps go grab it?
⬡ Did you download Anaconda?
⬡ Did you have access to TD WS 1 Shared Folder? (on AIS website)
⬡ If you encounter issues → ask our Student Assistants!
2
“ ● Speaker Series 2 : Abha Kumar
○ 02/17 from 12-1pm
● Phillies Office Visit
○ 02/27 (9:00-12:30)
○ Signups in the Newsletter
3
AIS Upcoming Events
“
4
Technical Development
Track Requirements
3
Friday
meetings
2
Saturday
workshops
Hello from our volunteers!
Justin
5
Jianjin Luke
TODAY’S AGENDA
6
PART 1
LINE CHART
DIY EXERCISES
PART 3
BAR CHART
DIY EXERCISES
OVERVIEW
GENERAL CONCEPT
SETTING UP
PART 2
PIE CHART
DIY EXERCISES
PART 4
HISTOGRAM
DIY EXERCISES
REVIEW
RESOURCES
SUBMISSION & FEEDBACK
OVERVIEW
General Concept | Setting Up
Python libraries
▸ pd as alias
▸ data structures and
operations
▸ data manipulation and
analysis
8
▸ np as alias
▸ multi-dimensional arrays
and matrices
▸ high-level mathematical
functions
▸ plt as alias
▸ plotting library
▸ Object-oriented API
Python libraries
9
MATLAB-style
Syntax
Object-oriented
Syntax
▸ Scripted
▸ Structured
▸ Beginner
▸ More control
▸ Personalization
Hybrid
LET’S GET YOU SET UP!
PART 1
Simple Line Graph | Multiple Lines
DIY Exercise
Line Graph
Used to track changes over short and long
periods of time.
12
Some methods and attributes
plot()
Take arrays and turn them to
line graphs
show()
Used to invoke the required plot
title()
Create title for graphs
13
xlabel() and ylabel()
Create x label and y label
fontsize
Adjust the size for the titles,
xlabel, ylabel, etc.
color or c
Change color
Some methods and attributes
linestyle or ls
Provide a variety of styles for
lines
figure()
Manipulate and adjust things to
the figure
figsize
Change the size of your figure
14
savefig()
Save graphs to your folder
legend()
Create legend for graphs
DIY Exercise
Line Graph
15
PART 2
Pie Chart | DIY Exercise
Pie Chart
Used to tell a story about the parts-to-whole
aspect of a set of data (usually percentage).
17
Some methods and attributes
pie()
Create pie charts
startangle
Adjust slides’ positions
explode
Cut slides
18
DIY Exercise
Pie Chart
19
PART 3
Bar Chart | Horizontal Bar
Multiple Bars | DIY Exercise
Bar Chart
Used to compare differences between groups/categories.
Also used to track changes over time
21
Load & Understand Dataset
read_excel()
Import excel files to Jupyter
Notebook
dtypes
Check the data types in each
column of a dataset
shape
Provide number of rows and
columns in a dataset
22
head() and tail()
Load first 5 rows
Load last 5 rows
info
Identity data types and null values
color or c
Change color
Rename columns
& Convert df to numpy arrays
rename()
Rename one column
columns
Rename multiple columns
23
loc
Load each column’s values
values
Convert pandas df to numpy arrays
Some methods and attributes
bar()
Create vertical bar graphs
barh()
Create horizontal bar graphs
xticks() and yticks()
Provide reference for points on a
scale for x and y axes
24
np.arange()
Create a numpy array
DIY Exercise
Bar Chart
25
PART 4
Histogram | DIY Exercise
Histogram
Help you discover, and show, the underlying
frequency distribution of a dataset
27
Some methods and attributes
hist()
Create histograms
np.random.randn()
Create random numbers
28
DIY Exercise
Histogram
29
Additional
learning resources
▸ Online Course: Data
Visualization for Python
▸ Matplotlib main website
▸ Real Python tutorials
▸ Free data sets
30
MAKE SURE YOU HAVE ALL
YOUR GRAPHS IN THE WORD
DOC TO SUBMIT FOR
PARTICIPATION!
32
Thanks for coming!
Suitable Code AIS Attendance
http://bit.ly/SAT-TD1
Exit Code: water

More Related Content

Similar to AIS Technical Development Workshop 4: Data visualization with Python libraries (20)

DOCX
Data visualization using py plot part i
TutorialAICSIP
 
PDF
pythondatasciencehandbook with oops concepts.pdf
RMani7
 
PDF
Python for Data Analysis_ Data Wrangling with Pandas, Numpy, and Ipython ( PD...
R.K.College of engg & Tech
 
PPTX
a9bf73_Introduction to Matplotlib01.pptx
Rahidkhan10
 
PDF
Wes McKinney - Python for Data Analysis-O'Reilly Media (2012).pdf
Blue Sea
 
PPTX
Python chart plotting using Matplotlib.pptx
sonali sonavane
 
PDF
Data Science & AI Road Map by Python & Computer science tutor in Malaysia
Ahmed Elmalla
 
PPTX
1_ Introduction Python.pptx python is a data
rinkiabhi2014
 
PPTX
DATA ANALYSIS AND VISUALISATION using python 2
ChiragNahata2
 
PPTX
EDA.pptx
Rahul Borate
 
PPTX
iPython
Aman Lalpuria
 
PPTX
More on Pandas.pptx
VirajPathania1
 
PPTX
Data Visualization using different Python libraries .pptx
HamzaAli998966
 
PPTX
Data Visualization using different python libraries.pptx
HamzaAli998966
 
PPTX
Meetup Junio Data Analysis with python 2018
DataLab Community
 
PPTX
Lecture 1 Pandas Basics.pptx machine learning
my6305874
 
PPTX
Matplot Lib Practicals artificial intelligence.pptx
PianoPianist
 
PDF
Python for Data Analysis Data Wrangling with Pandas NumPy and IPython Wes Mck...
arianmutchpp
 
PPTX
EDA.pptx
yovi pratama
 
PPTX
Python for Data Science
Panimalar Engineering College
 
Data visualization using py plot part i
TutorialAICSIP
 
pythondatasciencehandbook with oops concepts.pdf
RMani7
 
Python for Data Analysis_ Data Wrangling with Pandas, Numpy, and Ipython ( PD...
R.K.College of engg & Tech
 
a9bf73_Introduction to Matplotlib01.pptx
Rahidkhan10
 
Wes McKinney - Python for Data Analysis-O'Reilly Media (2012).pdf
Blue Sea
 
Python chart plotting using Matplotlib.pptx
sonali sonavane
 
Data Science & AI Road Map by Python & Computer science tutor in Malaysia
Ahmed Elmalla
 
1_ Introduction Python.pptx python is a data
rinkiabhi2014
 
DATA ANALYSIS AND VISUALISATION using python 2
ChiragNahata2
 
EDA.pptx
Rahul Borate
 
iPython
Aman Lalpuria
 
More on Pandas.pptx
VirajPathania1
 
Data Visualization using different Python libraries .pptx
HamzaAli998966
 
Data Visualization using different python libraries.pptx
HamzaAli998966
 
Meetup Junio Data Analysis with python 2018
DataLab Community
 
Lecture 1 Pandas Basics.pptx machine learning
my6305874
 
Matplot Lib Practicals artificial intelligence.pptx
PianoPianist
 
Python for Data Analysis Data Wrangling with Pandas NumPy and IPython Wes Mck...
arianmutchpp
 
EDA.pptx
yovi pratama
 
Python for Data Science
Panimalar Engineering College
 

Recently uploaded (20)

PDF
Data Science Course Certificate by Sigma Software University
Stepan Kalika
 
PDF
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
PDF
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
PDF
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
PDF
apidays Singapore 2025 - Trustworthy Generative AI: The Role of Observability...
apidays
 
PPTX
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
PDF
Simplifying Document Processing with Docling for AI Applications.pdf
Tamanna36
 
PDF
NIS2 Compliance for MSPs: Roadmap, Benefits & Cybersecurity Trends (2025 Guide)
GRC Kompas
 
PPTX
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
PDF
Optimizing Large Language Models with vLLM and Related Tools.pdf
Tamanna36
 
PDF
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
PPT
Growth of Public Expendituuure_55423.ppt
NavyaDeora
 
PDF
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
PPTX
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
PPTX
Numbers of a nation: how we estimate population statistics | Accessible slides
Office for National Statistics
 
PDF
apidays Singapore 2025 - From API Intelligence to API Governance by Harsha Ch...
apidays
 
PPTX
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
PPTX
BinarySearchTree in datastructures in detail
kichokuttu
 
PDF
1750162332_Snapshot-of-Indias-oil-Gas-data-May-2025.pdf
sandeep718278
 
PDF
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
Data Science Course Certificate by Sigma Software University
Stepan Kalika
 
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
apidays Singapore 2025 - Trustworthy Generative AI: The Role of Observability...
apidays
 
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
Simplifying Document Processing with Docling for AI Applications.pdf
Tamanna36
 
NIS2 Compliance for MSPs: Roadmap, Benefits & Cybersecurity Trends (2025 Guide)
GRC Kompas
 
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
Optimizing Large Language Models with vLLM and Related Tools.pdf
Tamanna36
 
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
Growth of Public Expendituuure_55423.ppt
NavyaDeora
 
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
Numbers of a nation: how we estimate population statistics | Accessible slides
Office for National Statistics
 
apidays Singapore 2025 - From API Intelligence to API Governance by Harsha Ch...
apidays
 
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
BinarySearchTree in datastructures in detail
kichokuttu
 
1750162332_Snapshot-of-Indias-oil-Gas-data-May-2025.pdf
sandeep718278
 
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
Ad

AIS Technical Development Workshop 4: Data visualization with Python libraries