Computer scienceData scienceInstrumentsPandasData analysis with pandas

Crosstab in pandas

The Manhattan distance

Report a typo

Below is the starter code for the New York City taxis dataset:

import pandas as pd
from seaborn import load_dataset

df = load_dataset("taxis")

Based on the pickup_borough and dropoff_borough features, we want to find the distances from each pickup district to the drop-off district. What is the median distance between the pickup district — drop-off district for the following pairs: Bronx—Manhattan; Manhattan—Bronx; Queens—Manhattan?

Select one option from the list

Create a free account to access the full topic