FastPrepBuild Taxi Driver Performance Features
Problems/Build Taxi Driver Performance Features

Build Taxi Driver Performance Features

Boston Consulting Group logoBoston Consulting Group● EasyINTERNOA

Updated Nov 2026

QuestionConstraints

Problem statement

Source note: The source gives the joins, the date and experience features, the upvote totals, and the saved driver table. The complaint and incident columns and the defaults for drivers with no rides come from related assessments of the same kind. Our version is about 94% the same as the reported question. The source saves this driver-level table as collected.csv and allows either row or column order. Here your Pandas function returns the table with the columns in the declared order.

Special thanks: 🌷 A special thank you to a lovely, amazing fren who shared that this question appeared again on November 21, 2026! ૮₍ ˃ ⤙ ˂ ₎ა 🧡

Build one performance-feature row for every driver using drivers, cars, and the four ride partitions rides_1 through rides_4.

Use 2023-04-15 as today. Join each driver to the assigned car and return the result columns in the declared order.

  • days_since_inspection is the calendar-day difference between 2023-04-15 and last_inspection_date.
  • experience is 2023 - started_driving_year.
  • number_of_rejected_rides counts rides whose status is exactly "Rejected by the driver".
  • number_of_upvotes sums all true values across the four upvote columns.
  • number_of_complaints and number_of_incidents count true values in their corresponding ride columns.

Concatenate all four ride partitions before aggregation. Retain drivers with no rides and set all four ride-derived counts to 0.

Table schema

Pandas

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

drivers

Driver attributes as of 2023-04-15.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_idIntegerNo—
ageIntegerYes—
started_driving_yearIntegerNo—
second_languageTextNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
driver_classTextNo—

cars

Car attributes and inspection dates.

ColumnTypeNullableDescription
car_idPKIntegerNo—
modelTextNo—
manufacture_yearIntegerNo—
last_inspection_dateDateNo—

rides_1

Ride partition 1.

ColumnTypeNullableDescription
ride_idPKIntegerNo—
driver_idIntegerNo—
dateDateNo—
statusTextNo—
car_clearness_upvote_givenBooleanNo—
politeness_upvote_givenBooleanNo—
communication_upvote_givenBooleanNo—
punctuality_upvote_givenBooleanNo—
complaint_givenBooleanNo—
incident_occurredBooleanNo—

Foreign key: driver_id → drivers(driver_id)

rides_2

Ride partition 2.

ColumnTypeNullableDescription
ride_idPKIntegerNo—
driver_idIntegerNo—
dateDateNo—
statusTextNo—
car_clearness_upvote_givenBooleanNo—
politeness_upvote_givenBooleanNo—
communication_upvote_givenBooleanNo—
punctuality_upvote_givenBooleanNo—
complaint_givenBooleanNo—
incident_occurredBooleanNo—

Foreign key: driver_id → drivers(driver_id)

rides_3

Ride partition 3.

ColumnTypeNullableDescription
ride_idPKIntegerNo—
driver_idIntegerNo—
dateDateNo—
statusTextNo—
car_clearness_upvote_givenBooleanNo—
politeness_upvote_givenBooleanNo—
communication_upvote_givenBooleanNo—
punctuality_upvote_givenBooleanNo—
complaint_givenBooleanNo—
incident_occurredBooleanNo—

Foreign key: driver_id → drivers(driver_id)

rides_4

Ride partition 4.

ColumnTypeNullableDescription
ride_idPKIntegerNo—
driver_idIntegerNo—
dateDateNo—
statusTextNo—
car_clearness_upvote_givenBooleanNo—
politeness_upvote_givenBooleanNo—
communication_upvote_givenBooleanNo—
punctuality_upvote_givenBooleanNo—
complaint_givenBooleanNo—
incident_occurredBooleanNo—

Foreign key: driver_id → drivers(driver_id)

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
driver_idIntegerNo—
car_modelTextNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerYes—
experienceIntegerNo—
second_languageTextNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classTextNo—

Row order: any order is accepted. Numeric tolerance: 0.

Constraints

  • Every driver references exactly one row in cars.
  • Every ride references a row in drivers.
  • Every date is a valid ISO calendar date no later than 2023-04-15.
  • started_driving_year is no later than 2023.
  • age may be null; all other driver and car fields are non-null.
  • Result row order is ignored.

Source note: The screenshot requests collected.csv; this practice returns the corresponding feature table.

More Boston Consulting Group interview questions

  • Summarize Taxi Drivers and RidesOA · Seen Nov 2026
  • Competition Winner and Runner-Up (Forward Deployed Engineer)OA · Seen Nov 2026
  • Count Belt Sections With K Fruit Pairs (Forward Deployed Engineer)OA · Seen Nov 2026
  • Robot Stops Left or Right (Forward Deployed Engineer)OA · Seen Nov 2026
  • Split a Matrix Into Four Partitions by Average (Forward Deployed Engineer)OA · Seen Nov 2026
  • Predict Taxi Driver ClassesOA · Seen Oct 2026
  • Prepare Taxi Driver Classification DataOA · Seen Oct 2026
  • Even-Position MonotonicityOA · Seen Jul 2026
  • Shortest Distances From an Adjacency MatrixPHONE SCREEN · Seen Sep 2026

Similar questions at other companies

  • In-Memory Database QueriesOpenAI · PHONE SCREEN · ONSITE INTERVIEWOpenAI interview questions
  • Parquet-Like Columnar Format OperationsJump Trading · PHONE SCREENJump Trading interview questions
  • Students Scoring Above AverageCapstone Investment Advisors · OA
  • Total Each Letter's Count in an Encoded StringIBM · OAIBM interview questions
  • Bond Interest Summary Above 3%Wells Fargo · OAWells Fargo interview questions
  • Employee Promotion OpportunitiesIntuit · OAIntuit interview questions
  • Students and Their SubjectsBirla Pivot · OA
  • Companies with Average Salary Above 40000AT&T · OAAT&T interview questions
  • Weekend Appointments for Consular Services ReschedulingMcKinsey & Company · OAMcKinsey & Company interview questions
  • Companies Above a Salary ThresholdVerisk · OA

Interview reports that mention this question

  • Boston Consulting Group OA · November 2026
All Boston Consulting Group interview questionsSee Boston Consulting Group hiring insights