1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Exploratory Data Analysis in Python

Connected

Exercises

Adding descriptive statistics

Now "Duration" and "Price" both contain numeric values in the planes DataFrame, you would like to calculate summary statistics for them that are conditional on values in other columns.

คำแนะนำ 1 / 3

undefined XP
  • 1
    • Add a column to planes containing the standard deviation of "Price" based on "Airline".
  • 2
    • Calculate the median for "Duration" by "Airline", storing it as a column called "airline_median_duration".
  • 3
    • Find the mean "Price" by "Destination", saving it as a column called "price_destination_mean".