Search this site
Embedded Files
AIMD GPDS Courses
  • Home
  • Courses
  • Contact
AIMD GPDS Courses
  • Home
  • Courses
  • Contact
  • More
    • Home
    • Courses
    • Contact

日本語  ❯

Lesson 4    ❮    Lesson List    ❮    Top Page

4.1  Intro to matplotlib

4.2  Plotting with pandas

❯  4.3  Styles of Visualization

4.4  Advanced Filtering

4.5  Multiple Plots with Seaborn

⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
EXPECTED COMPLETION TIME
❲▹❳  Video   9m 56s
☷  Interactive readings   5m

Plotting from a DataFrame: GroupBy object and as_index = False

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).

©2023. All rights reserved.  Samy Baladram,
Graduate Program in Data Science - GSIS - Tohoku University
Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse