Menu
CoddyTech

Recap: Delivery Times

Part of the Statistics for ML section of Coddy's Machine Learning journey. Lesson 6 of 64.

challenge icon

Challenge

Easy

Put 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:

  1. how many there were,
  2. the median minutes, then the mean (1 decimal),
  3. the IQR (1 decimal),
  4. the sample std, as pandas gives it (2 decimals),
  5. 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: Mia

Try 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

Practice on your own: Online Python compiler