lecture-week3
lecture-week3
Data Visualization
SIT112 | Data Science Concepts
Lecture Week 3
Objectives
1. Use the Pandas plot() method to create these types of plots: line plot, area plot, scatter plot, bar plot,
histogram, density plot, box plot, pie plot
2. Use the parameters of the Pandas plot() method to enhance a plot in these ways: add a title, x and y labels,
and grid lines, rotate the tick labels, set the x- and y-axis limits
3. Use the parameters of the Pandas plot() method to create a plot that has subplots.
4. Chain the Pandas plot() method to methods that prepare the data for the plot() method.
5. Use the Seaborn methods to create these types of plots: line plot, scatter plot, bar plot, box plot, histogram, KDE
plot, ECDF plot
6. Use Seaborn parameters to create a plot with subplots.
7. Use the methods of the Axes object to enhance a plot in these ways: add a title and the labels for the x- and y-axis,
set the ticks for a plot, set the x and y limits, add grid lines, annotate a plot, set the color palette
Why Data
Visualization? UNDERSTAND YOUR SEE THE SPOT UNUSUAL
DATA MORE EASILY. RELATIONSHIPS DATAPOINTS LIKE
BETWEEN VARIABLES. OUTLIERS.
Data Visualization Libraries in Python
Data Visualization with Pandas
Data visualization with Pandas
● Get the data
● Line plot
● Rotating the y-axis
● Scatter plot
● Area plot
● Bar plot
● Histogram
● Density plot
● Box plot
● Pie chart
● Subplots
● Changing units of measurement in figsize
● Chaining
Get the Data:
Long vs Wide
Line Plot of the Wide Data
Ask ChatGPT ☺
Scatter Plot
Ask ChatGPT ☺
Chaining
Chaining
(Cont.)
Movie Time
☺