Lesson 4 ❮ Lesson List ❮ Top Page
❯ 4.3 Styles of Visualization
4.5 Multiple Plots with Seaborn
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
EXPECTED COMPLETION TIME
❲▹❳ Video 9m 56s
☷ Interactive readings 5m
Line Plot
By setting as_index=False in a GroupBy object, we can make a DataFrame consisting of multiple columns.
Here, we will read a groupby object and use line method to draw the plot.
Pie Plot
In this example, we want to make a pie plot for weekend and weekday flights.
We will use groupby object and make a new DataFrame that contains the essential informations.
At the end, we will use pie method to draw the plot. The autpct option (written between %) can be used to convert the formatting. (.2f% means 2 decimals followed by % symbol).