High-surge trips

EasyUberboolean filtersloc· 10 XP

The pricing team is reviewing trips that ran at high surge pricing.

From trips.csv, store the completed trips with a surge_multiplier of at least 1.5, with columns trip_id, city, fare and surge_multiplier.

Expected answer

Store it in result: a DataFrame with fare, surge multiplier, trip id and city (name the columns however you like).

  • Any row order
import pandas as pd

trips = pd.read_csv("trips.csv")
result = ...