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.
This exercise is part of the course
Exploratory Data Analysis in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Price standard deviation by Airline
planes["airline_price_st_dev"] = planes.____("____")["____"].____(____ ____: ____.____())
print(planes[["Airline", "airline_price_st_dev"]].value_counts())