FastPrepPredict Taxi Driver Classes
Problems/Predict Taxi Driver Classes

Predict Taxi Driver Classes

Boston Consulting Group logoBoston Consulting Group● HardFULLTIMEINTERNOA

Updated Nov 2026

QuestionConstraints

Problem statement

Source note: About 60% of this problem comes straight from the report. The report says to train a classifier on the prepared taxi-driver data and reach high accuracy. The way the data is split, the label encoding, the exact output and the fixed grading data are rebuilt from related reports of the same assessment.

Use the prepared training and test data to train a classification model and produce driver-class predictions with high accuracy.

Interpretation

For this exercise, assume the prepared inputs are train_data, validation_data, and test_data. Train a binary classifier using the labeled training and validation rows, then predict driver_class for every test row.

  • 0 represents A class.
  • 1 represents B class and is the positive class.
  • Do not use driver_id as a model feature.
  • You may choose any deterministic classification method available in the Pandas runtime.

Return exactly one column named driver_class, with predictions in the original test_data row order. The practice objective is to identify all positive rows while avoiding false positives; each published fixture has one exact expected label per test row.

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.

train_data

The labeled training split.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_modelIntegerNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerNo—
experienceIntegerNo—
second_languageIntegerNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classIntegerYes—

validation_data

The labeled validation split.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_modelIntegerNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerNo—
experienceIntegerNo—
second_languageIntegerNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classIntegerYes—

test_data

The unlabeled test split to classify.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_modelIntegerNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerNo—
experienceIntegerNo—
second_languageIntegerNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classIntegerYes—

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
driver_classIntegerNo—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • Each input table is non-empty.
  • Training and validation labels are 0 or 1, and both classes occur in the combined labeled data.
  • Test labels are null and must not be used.
  • Every feature value is finite.
  • All three tables have the same feature columns.
  • The output has exactly one row per test row.

Source note: The screenshot reports a model-training notebook and file task. This practice retains tabular classification with exact expected labels; the source project format is not reproduced here.

More Boston Consulting Group interview questions

  • Build Taxi Driver Performance FeaturesOA · Seen Nov 2026
  • 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
  • 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

  • Bootstrap Decision Tree ClassifierPinterest · OAPinterest interview questions
  • Arithmetic Triplets After QueriesCapital One · OACapital One interview questions
  • Bring Servers DownAmazon · OA
  • Last Object Exit TimeIBM · OAIBM interview questions
  • Capping Portfolio WeightsCapstone Investment Advisors · OA
  • Bold Play to Reach a GoalSusquehanna International Group (SIG) · OASusquehanna International Group (SIG) interview questions
  • Repeated Mirror XORMathWorks · OAMathWorks interview questions
  • Basic Item DiscountsPalantir · OAPalantir interview questions
  • Find Total CostJP Morgan Chase · OAJP Morgan Chase interview questions
  • Macaron Order PriceOpenAI · OAOpenAI interview questions

Boston Consulting Group interview experiences

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