Capital One Data Scientist Data Manipulation (SQL/Python) Interview Questions

Practice 23 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles at Capital One.

23 Questions 1 Company02.28.2026
Showing 20 results
Capital One logo
Capital One
Easy
Data ScientistSenior+ Locked

Clean and Merge Housing Data

This question evaluates data cleaning, type coercion, robust merge operations, and missing-data imputation skills within tabular datasets, emphasizing...

Data Manipulation (SQL/Python)
3
0
62 people solved
Feb 28, 2026
Capital One logo
Capital One
Medium
Data Scientist

Fix dash dates and aggregate watch time

You receive a CSV of ad viewing logs where the date column repeats only on the first row of each block and subsequent rows use a single dash '-' to in...

Data Manipulation (SQL/Python)
1
0
13 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Determine Country with Most 'Sunny' Days

Weather +------------+------------+---------+ | country | date | weather | +------------+------------+---------+ | Spain | 2023-07-01 | ...

Data Manipulation (SQL/Python)
54
0
182 people solved
Jul 12, 2025
Capital One logo
Capital One
Medium
Data Scientist

Audit flight data quality from metadata

You’re given an airline on‑time dataset and a one‑page “Metadata” slide that claims: flight_date (string, local time), dep_time/arr_time (HHMM local),...

Data Manipulation (SQL/Python)
1
0
11 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL to compute campaign net revenue

Using the schema and sample data below, write SQL to produce, for each campaign_id and segment, the following metrics for August 2025: total_reached, ...

Data Manipulation (SQL/Python)
17
0
126 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL for lowest price with ratings

You have two tables. Schema: - products(product_id INT PRIMARY KEY, product_name TEXT, category TEXT) - purchase(purchase_id INT PRIMARY KEY, product_...

Data Manipulation (SQL/Python)
4
0
84 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Merge CSVs and build revenue pivot with pandas

You receive four CSVs and must replicate an Excel VLOOKUP + PivotTable workflow using Python/pandas. CSV samples: customers.csv customer_id,signup_dat...

Data Manipulation (SQL/Python)
9
0
114 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Reconcile ledgers with SQL/Python and late events

You own a daily ETL + reconciliation job between two financial ledgers. Late postings (“delay time”) up to 48 hours are common. Schema: - payments_raw...

Data Manipulation (SQL/Python)
3
0
74 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Impute missing values without leakage

Given a DataFrame df with columns: user_id, event_date (datetime), country (categorical), device_type (categorical), age (numeric), income (numeric), ...

Data Manipulation (SQL/Python)
0
0
10 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Merge seven tables into one clean DataFrame

Using pandas only (no loops over rows), write a function build_facts(customers, orders, order_items, products, payments, shipments, refunds) -> pd.Dat...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Compute Customer Spend and Engineer Features for 2023

transactions +-----------+-------------+--------+------------+--------------+ | tran_id | customer_id | amount | tran_date | merchant_cat | +------...

Data Manipulation (SQL/Python)
117
0
543 people solved
Aug 4, 2025
Capital One logo
Capital One
Medium
Data Scientist

Merge four CSVs locally, robustly and efficiently

You receive four CSV files that must be merged locally on a laptop with 8 GB RAM, without relying on cloud services: - products.csv: product_id, categ...

Data Manipulation (SQL/Python)
9
0
83 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Merge ad CSVs and compute CTR

Using SQL, clean and merge four CSVs and answer all parts exactly. Schema and sample rows (assume types: date is DATE, others INT/VARCHAR): platforms(...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Aggregate exam scores with NULL handling

Write a single SQL query (or CTE pipeline) to satisfy all requirements using the schema and sample data below. Replace any vendor-specific function wi...

Data Manipulation (SQL/Python)
0
0
9 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Calculate Longest Transaction Streak for Each User

transactions +---------------+---------+--------+----------------+-----------+----------+ | transaction_id| user_id | amount | transaction_date| merch...

Data Manipulation (SQL/Python)
0
0
10 people solved
Aug 4, 2025
Capital One logo
Capital One
Medium
Data Scientist

Find top category per region in Aug 2025

You are given the following schema and sample data. Schema: - customers(customer_id INT, name TEXT, region TEXT) - orders(order_id INT, customer_id IN...

Data Manipulation (SQL/Python)
7
0
53 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL for theme-park revenue and visits

You are given theme-park ticketing and visits data. Write SQL to answer the following, using the sample schema and tables below. Return both the query...

Data Manipulation (SQL/Python)
1
0
10 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Identify country with highest sunny-day probability

Write SQL to find the country with the highest probability that a day is sunny. Use the schema and sample data below. Rules: consider a day sunny for ...

Data Manipulation (SQL/Python)
10
1
82 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL to find top net-revenue products

Using the sample schema and data below, write a single SQL query that returns, for the last 7 days relative to today (use today = 2025-09-01, so the w...

Data Manipulation (SQL/Python)
5
0
69 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL to quantify outage revenue loss

A database outage blocked premium membership registrations from 2025-01-01 to 2025-03-31 (inclusive). Members intend to start on intended_start_date, ...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025

Explore more Capital One Data Scientist interview questions

Real questions from candidate reports, grouped by topic.

Other Capital One Data Scientist categories
Browse all