Recap: Delivery Times
Part of the Statistics for ML section of Coddy's Machine Learning journey. Lesson 6 of 64.
Challenge
EasyPut the chapter's summary together: a report on one restaurant for a delivery app. deliveries.csv has the columns restaurant, driver and minutes, and the program reads a restaurant's name. For its deliveries, print:
- how many there were,
- the median minutes, then the mean (1 decimal),
- the IQR (1 decimal),
- the sample std, as pandas gives it (2 decimals),
- the driver who made the most of them.
For another restaurant and the input Pizza:
Pizza: 10 deliveries
Usual time: 17.5 min (median), mean 19.2
Middle half spans 2.5 min (IQR)
Std: 5.81 min
Top driver: MiaTry it yourself
import numpy as np
import pandas as pd
deliveries = pd.read_csv("deliveries.csv")
name = input()
# Write your code below
All lessons in Statistics for ML
1Center and Spread
Mean and MedianPercentiles and QuartilesVariance and StdSample or Population?The Most Common ValueRecap: Delivery Times4Samples and Populations
Population and SampleSample Means VaryThe Sampling DistributionBigger Samples, Less NoiseRecap: Polling a Town2Distributions
Density HistogramsShapes of DataThe Normal CurveThe 68-95-99.7 RuleZ-ScoresRecap: Battery Life3Probability by Simulation
Probability as FrequencyThe Law of Large NumbersSums of DiceExpected ValueConditional ProbabilityRecap: Dice Stall Odds6Relationships
Reading Scatter PlotsCorrelationCorrelation MatrixCorrelation HeatmapsCorrelation Is Not CauseRecap: Ice Cream and SunPractice on your own: Online Python compiler