Boston Consulting Group Data Manipulation (SQL/Python) Interview Questions

Practice the exact questions companies are asking right now.

8 Questions 1 Company10.13.2025
Showing 8 results
Role
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Transform and aggregate messy event data

Using pandas (vectorized; no loops), clean, combine, and aggregate the following to produce country/plan day-level metrics for 2025-08-31. DataFrames ...

Data Manipulation (SQL/Python)
13
0
240 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Unify 7 tables and impute missing values

Using pandas, write a robust function unify_orders(...) that ingests seven dataframes (or CSVs) with possibly inconsistent column casing/whitespace an...

Data Manipulation (SQL/Python)
1
0
8 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Transform messy transactions with pandas

You are given two CSVs. transactions.csv - Columns: txn_id, user_id, ts_iso (ISO8601 with timezone), amount (decimal USD; refunds negative), merchant_...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Query top spenders and 7-day growth

Assume 'today' = 2025-09-01. Write a SQL query to: (1) for each model, compute total revenue in the last 7 days (2025-08-26 to 2025-09-01 inclusive) a...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Manipulate and merge DataFrames correctly

Given three pandas DataFrames: customers customer_id, join_date, tier 101, 2025-01-02, gold 102, 2025-02-10, silver 103, 2025-03-05, gold products mod...

Data Manipulation (SQL/Python)
0
0
11 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Merge and Clean Customer Order Data for Analysis

customers +----+---------+---------+ | id | name | country | +----+---------+---------+ | 1 | Alice | US | | 2 | Bob | UK | | 3 ...

Data Manipulation (SQL/Python)
0
0
7 people solved
Aug 4, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Merge and Concatenate Inconsistent Order Files with Pandas

orders_2023 +----------+-------------+--------+ | order_id | customer_id | amount | +----------+-------------+--------+ | 101 | C001 | 120...

Data Manipulation (SQL/Python)
0
0
10 people solved
Aug 4, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Visualize and Clean SKU Sales Data for Outliers

sales_data +------------+--------+-----------+----------+------------+---------+ | date | sku_id | unit_sold | revenue | promo_flag | store_id|...

Data Manipulation (SQL/Python)
0
0
5 people solved
Aug 4, 2025

Explore more Boston Consulting Group Data Manipulation (SQL/Python) interview questions

Real questions from candidate reports, grouped by role, topic and company.

Data Manipulation (SQL/Python) questions at other companies
Browse all