What should I study for a Pandas interview?
Which basics should I check first?
Pandas basics and large data were the most common topics, each appearing in 7 of 33 interviews. Start by checking whether you can explain what pandas does and how you use it in Python. Then check these specific skills:
- Can you explain the difference between a Python list, a Series, and a DataFrame?
- Can you create a DataFrame and check its rows and columns?
- Can you explain what
info()anddescribe()show?
How should I prepare for large data questions?
Check whether you can explain how to read a large CSV while controlling memory use and column types. The questions also cover chunked aggregation, memory-safe cleaning, and consistent Parquet schemas.
- Can you describe how you would calculate grouped results while reading data in chunks?
- Can you explain how you would keep column types consistent when writing Parquet files?
- Can you compare pandas and Spark DataFrames and explain when you would choose each?
What code should I be ready to write?
Coding tasks appeared in 7 of 33 interviews. Use the recorded tasks to check what you can write and explain:
- Read a CSV of user data, keep rows where country is US, and write the filtered data to a new CSV.
- Change a function so it returns a new DataFrame without changing the original.
- Convert a filtered revenue column without changing the original DataFrame.
- Add a new column to a DataFrame.
For the CSV task, can you explain the main steps and functions as you write the code?
Can I explain safe updates and joins?
Check whether you can explain how views and copies affect filtered updates, including how to avoid unintended changes and SettingWithCopy warnings.
For combining data, can you say when to use merge rather than concat? Can you explain how you would handle overlapping column names, validate merge keys, and investigate unexpected extra rows after a merge?
What other practical skills should I check?
Use these questions to check the remaining topics:
- How would you check data types, convert them, and handle nulls?
- How would you count rows that meet a condition within each group, then filter groups by their results?
- How do rolling calculations differ from resampling? How would you avoid using future data in a financial calculation?
- Can you spot unsafe changes to a shared DataFrame in threaded code and explain how you would test parallel results?
Who gets asked Pandas
The 20 most asked Pandas questions
Counted by interview, not by mention: a question asked twice in one conversation counts once.
What is pandas, and how do you use it in Python?
Asked in 2 of 33 interviews · last asked Nov 5 · Tooling · Mid-level
Show answer
pandas is a Python library for working with table-like data. Its main data structures are Series for one-dimensional data and DataFrame for tables. I import it as
pd, load or create data, then use it to filter, clean, group, and summarize that data.- The standard import is
import pandas as pd. - A DataFrame has rows and named columns; a Series is one-dimensional.
- pandas can read and write formats such as CSV and Excel.
- It supports missing values, filtering, grouping, and joining tables.
Pythonimport pandas as pd df = pd.DataFrame({ "name": ["Ana", "Sam", "Lee"], "age": [22, 17, 30] }) adults = df.loc[df["age"] >= 18] print(adults)What the interviewer checks: The interviewer is checking whether you understand what pandas does and can use a DataFrame.
Other ways it was asked
- “How do you use pandas in Python?”
- “Why do we use Pandas?”
- “What is pandas in Python?”
- The standard import is
How do you read a large CSV in pandas while controlling memory usage and column types?
Asked in 2 of 33 interviews · last asked Aug 23 · Tooling · Mid-level
Show answer
Use read_csv with usecols, explicit dtype values, and chunksize to control memory. Process each chunk without keeping all chunks in memory. Explicit types avoid inference, while strict conversion can reject invalid values during loading or chunk processing.
- usecols loads only needed columns; chunksize limits rows loaded at once.
- Choose smaller numeric types only when their range and precision are safe.
- Nullable types such as Int64 support missing integers; category can save memory for repeated labels.
- low_memory=False changes type inference; it does not return chunks or guarantee low memory use.
Pythonimport pandas as pd rows = 0 for chunk in pd.read_csv("large.csv", usecols=["id", "region", "date"], dtype={"id": "Int64", "region": "string", "date": "string"}, chunksize=100_000, ): chunk["date"] = pd.to_datetime(chunk["date"], format="%Y-%m-%d", errors="raise") rows += len(chunk) print(rows)What the interviewer checks: The interviewer checks whether you can limit memory use while enforcing suitable column types and handling invalid data.
Other ways it was asked
- “How would you read a large CSV with pandas while minimizing memory usage and validating column types during loading?”
- “When you're reading a large CSV in pandas for an ETL step, what options do you use to control memory and data types and why?”
How do views and copies affect filtered DataFrame updates, and how do you avoid SettingWithCopy warnings?
Asked in 2 of 33 interviews · last asked Jun 3 · Tooling · Mid-level
Show answer
A view shares data; a copy is independent. Without Copy-on-Write, updating a filtered result can be ambiguous and trigger SettingWithCopyWarning. I use
df.loc[mask, "col"] = valueto update the original, ordf.loc[mask].copy()for separate work. With Copy-on-Write, default in pandas 3.0, chained assignment never updates the original.- Update the original DataFrame with one .loc assignment.
- Use .copy() when the filtered DataFrame should be independent.
- Avoid chained assignment, such as df[mask]["col"] = value; do not just hide warnings.
Pythonimport pandas as pd df = pd.DataFrame({"score": [40, 80], "passed": [False, False]}) mask = df["score"] >= 50 df.loc[mask, "passed"] = True # Update the original. subset = df.loc[mask].copy() subset.loc[:, "score"] = 100 # Leave the original unchanged.What the interviewer checks: The interviewer checks whether you can control which DataFrame changes and avoid unreliable chained assignment.
Other ways it was asked
- “How would you reliably update a filtered subset of a DataFrame without risking setting-with-copy issues, and why does that approach work?”
- “How do you avoid a SettingWithCopy warning in real analysis code?”
- “In your own words, what is the difference between a pandas view and a copy, and how do you typically prevent a SettingWithCopy warning?”
How do you combine pandas DataFrames, and when would you use merge versus concat?
Asked in 2 of 33 interviews · last asked Nov 16 · Concept · Junior
Show answer
Use
mergeto match rows by shared column values or index keys, like a SQL join. Useconcatto stack rows or place columns side by side. Withconcat, pandas aligns the other axis by labels; it does not match values in key columns.mergesupports inner, left, right, and outer joins; inner is the default.concatstacks rows withaxis=0and combines columns withaxis=1.- Use
ignore_index=Truewhen stacking rows if you want a new numbered index. - Repeated keys in both inputs can produce multiple matching rows in a merge.
Pythonimport pandas as pd DF1 = pd.DataFrame({'id': [1, 2], 'name': ['Ana', 'Bo']}) DF2 = pd.DataFrame({'id': [1, 2], 'score': [80, 90]}) DF3 = DF1.merge(DF2, on='id', how='left') # Stack rows instead; missing columns become NaN. stacked = pd.concat([DF1, DF2], ignore_index=True)What the interviewer checks: The interviewer checks whether you can choose between matching rows by keys and combining data along an axis.
Other ways it was asked
- “In pandas, what's the difference between merge and concat, and when would you choose one over the other?”
- “How can you combine two pandas DataFrames, DF1 and DF2, to create DF3?”
How do Spark and pandas DataFrames differ, and when would you choose each?
Asked in 2 of 33 interviews · last asked Sep 10 · Concept · Junior
Show answer
A Spark DataFrame is a table split across partitions that Spark can process on multiple machines. A pandas DataFrame usually runs in one process and holds data in memory. I choose pandas for data that fits comfortably in memory and quick local analysis. I choose Spark for larger data or distributed pipelines, where its extra processing overhead are worth it.
- Spark evaluates most transformations lazily; pandas usually executes operations immediately.
- Spark can distribute work and recover failed tasks; pandas is simpler for local analysis.
- Spark has scheduling and data transfer overhead, so pandas often works better for small datasets.
What the interviewer checks: The interviewer wants to know whether you can choose a tool based on data size, memory, and processing overhead.
Other ways it was asked
- “Could you explain what a Spark DataFrame is and how it differs from a pandas DataFrame? In the context of big data, why is Spark often preferred over pandas?”
- “How do you decide whether to use Spark or pandas for a job?”
Could you explain the difference between a Python list and a pandas Series or DataFrame? In a data engineering context, when would you prefer pandas over basic Python data structures?
Asked once · last asked May 18 · Concept · Junior
Show answer
A Python list is a general-purpose sequence of items. A pandas Series is a one-dimensional structure with labels, while a DataFrame is a table with labeled rows and columns. I prefer pandas for cleaning, joining, and summarizing structured data that fits in memory. Lists are simpler for small collections or custom processing.
- Lists can mix item types; a Series has one dtype, and each DataFrame column has its own dtype.
- Pandas provides missing-value handling, filtering, joins, and group operations.
- Pandas aligns data by labels; lists use integer positions.
- Pandas adds memory overhead and is not always faster than basic Python.
What the interviewer checks: The interviewer checks whether you understand these structures and can choose suitable tools for data processing.
How would you check the number of rows and columns in a dataset?
Asked once · last asked Sep 18 · Write code · Junior
Show answer
I use
df.shapeto check the number of rows and columns in a pandas DataFrame. It returns a tuple in the order(rows, columns). For separate counts, I usedf.shape[0]for rows anddf.shape[1]for columns.shapeis an attribute, not a method, so it needs no parentheses.len(df)returns only the number of rows.
Pythonimport pandas as pd df = pd.DataFrame({"name": ["Ana", "Sam"], "age": [25, 30]}) rows, columns = df.shape print(rows, columns) # 2 2What the interviewer checks: The interviewer is checking whether you can inspect a DataFrame's size and know the order of its dimensions.
How do you create a DataFrame in pandas?
Asked once · last asked Nov 6 · Tooling · Junior
Show answer
Use
pd.DataFrame()to create a DataFrame from data such as a dictionary of lists or a list of records. Dictionary keys become column names. You can also set column names and row labels with thecolumnsandindexarguments.- Import pandas with
import pandas as pd. - A dictionary of lists creates one column per key; all lists must have the same length.
- For a dictionary of lists, pandas uses row labels starting at zero unless you provide an index.
Pythonimport pandas as pd data = {"name": ["Ana", "Ben"], "age": [25, 30]} df = pd.DataFrame(data) print(df)What the interviewer checks: The interviewer is checking whether you can build a DataFrame and explain its columns and row labels.
- Import pandas with
What tools are commonly used to work with Small Data?
Asked once · last asked Nov 16 · Concept · Junior
Show answer
Common tools for small data include spreadsheets, SQL databases, Python with Pandas, and R. Spreadsheets work well for quick manual tasks, while SQL helps filter and combine tables. Pandas and R support repeatable cleaning and analysis, especially when the data fits in memory.
- Excel and Google Sheets support quick exploration and simple calculations.
- SQL databases store structured data and support filtering, joins, and summaries.
- Pandas and R support cleaning, analysis, and repeatable workflows.
- Choose tools based on data size, task complexity, and team skills.
What the interviewer checks: The interviewer is checking whether you can choose practical tools without adding unnecessary complexity.
What do the info() and describe() methods do in pandas?
Asked once · last asked Nov 18 · Tooling · Junior
Show answer
info() prints a summary of a DataFrame, including its columns, data types, non-null counts, and memory usage. describe() returns summary statistics, such as count, mean, and quartiles for numeric columns. For a DataFrame with only numeric and text columns, describe() defaults to numeric columns; include='all' includes both types.
- info() prints its output and returns None; non-null counts may be omitted for large DataFrames.
- describe() returns a DataFrame when called on a DataFrame.
- For text columns, describe() reports count, unique, top, and freq.
- Both methods help check data quality and missing values.
What the interviewer checks: The interviewer is checking whether you can distinguish a structural summary from statistical summaries.
Other ways it was asked
- “What do the info() and describe() functions do?”
How would you write a Python script using pandas to read a CSV file of user data, filter rows where country is US, and write the filtered data to a new CSV file, explaining the main steps and functions?
Asked once · last asked May 18 · Write code · Junior
Show answer
I would use
pd.read_csv()to load the CSV into a DataFrame. Then I would use a Boolean filter to keep rows wherecountryequals"US". Finally, I would useto_csv()withindex=Falseto save the filtered rows without adding the DataFrame index.read_csv()loads the input file into a DataFrame.- The filter matches
USexactly, so case and spaces matter. to_csv(index=False)writes the result without an extra index column.
Pythonimport pandas as pd users = pd.read_csv("users.csv") us_users = users.loc[users["country"] == "US"] us_users.to_csv("us_users.csv", index=False)What the interviewer checks: The interviewer is checking basic pandas file handling, Boolean filtering, and control over CSV output.
Other ways it was asked
- “In Python, how would you write a simple script using pandas to read a CSV file of user data, filter rows where the country is US, and write the filtered data to a new CSV file? Could you walk me through the main steps and functions you would use?”
Why might you convert Excel files to PDF for processing, and what role can pandas play in a document-processing pipeline?
Asked once · last asked Jun 12 · Tooling · Mid-level
Show answer
You might convert Excel files to PDF to preserve their printed layout or use tools that require PDFs. Pandas can read Excel data, clean it, and prepare tables for reports or further processing. It does not directly convert Excel files to PDF; that needs another tool, such as Excel or LibreOffice.
- PDF works well for fixed-layout documents, but conversion can make table data harder to extract.
- Pandas handles table data, not spreadsheet page layout.
- Read Excel directly with pandas when you need cell data rather than page appearance.
What the interviewer checks: The interviewer is checking whether you can separate document conversion from data processing and choose the right tool.
How do you read a file into a DataFrame using Pandas in Python?
Asked once · last asked Sep 18 · Tooling · Junior
Show answer
Use a Pandas reader function that matches the file format. For example,
pd.read_csv("data.csv")reads a CSV file into a DataFrame. Usepd.read_excel()for Excel files orpd.read_json()for JSON files.- Import Pandas with
import pandas as pd. - Choose the reader function for the file format.
- For CSV files, use options like
sep,header, anddtypeto control parsing.
Pythonimport pandas as pd df = pd.read_csv("data.csv") print(df.head())What the interviewer checks: The interviewer is checking whether you can load file data into a DataFrame using the correct Pandas function.
- Import Pandas with
In pandas, what's the difference between .loc and .iloc, and what kind of bug can happen if you mix them up after filtering a DataFrame?
Asked once · last asked May 24 · Concept · Mid-level
Show answer
.loc selects rows and columns by label, while .iloc selects them by zero-based position. Filtering usually keeps the original index labels, so labels may no longer match positions. Mixing them up can select the wrong row or raise an error.
- Integer labels are still labels for .loc, not row positions.
- Filtering does not automatically reset the index.
- .loc label slices include the stop label; .iloc position slices exclude the stop position.
Pythonimport pandas as pd df = pd.DataFrame({'score': [10, 20, 30]}) filtered = df[df['score'] >= 20] # Index labels remain 1 and 2. print(filtered.loc[1, 'score']) # 20: label 1 print(filtered.iloc[1, 0]) # 30: second rowWhat the interviewer checks: The interviewer checks whether you distinguish index labels from row positions, especially after filtering.
How would you ensure a Boolean mask is aligned with the DataFrame's index to prevent silent misassignment?
Asked once · last asked May 24 · Scenario · Mid-level
Show answer
I create the mask from the same DataFrame whenever possible. For an external Boolean Series, I reindex it to the DataFrame’s index and explicitly handle missing values before assigning with
.loc. I avoid converting it to a NumPy array, which removes labels and makes selection positional.- Check
mask.index.equals(df.index)to confirm matching labels and order. - Use
mask.reindex(df.index)to align an external mask by label. - Decide whether missing labels should mean False or raise an error.
- Check duplicate labels before assuming one-to-one matching.
Pythonimport pandas as pd df = pd.DataFrame({'value': [10, 20, 30]}, index=['a', 'b', 'c']) mask = pd.Series([True, False], index=['b', 'a'], dtype='boolean') assert mask.index.is_unique mask = mask.reindex(df.index).fillna(False) assert mask.index.equals(df.index) df.loc[mask, 'value'] = 0What the interviewer checks: The interviewer checks whether you understand label alignment versus positional selection and handle missing or duplicate labels safely.
- Check
How would you modify a function to return a new DataFrame without changing the original?
Asked once · last asked Sep 25 · Write code · Mid-level
Show answer
Make a copy of the DataFrame at the start of the function, change the copy, and return it. Use
df.copy()rather than assigning the original to another variable. Assigning columns or cell values in the copy leaves the original unchanged.- Use
df.copy()before making changes. - Assigning
result = dfdoes not create a copy. - Return the modified copy, not the original DataFrame.
Pythonimport pandas as pd def double_amount(df: pd.DataFrame) -> pd.DataFrame: result = df.copy() result["amount"] = result["amount"] * 2 return resultWhat the interviewer checks: The interviewer is checking whether you can avoid changing the caller’s DataFrame while returning a modified result.
- Use
How would you convert a filtered revenue column in pandas without modifying the original DataFrame?
Asked once · last asked Sep 25 · Write code · Mid-level
Show answer
Make an explicit copy of the filtered rows, then convert the revenue column in that copy. Use
pd.to_numeric()for numeric conversion. Assign the result to the copied DataFrame so the original stays unchanged.- Use
.loc[mask].copy()to create a separate filtered DataFrame. - Assign the converted column to the copy, not the original.
pd.to_numeric()raises on invalid values by default;errors="coerce"replaces them with missing values.
Pythonimport pandas as pd filtered = df.loc[df["revenue"].notna()].copy() filtered["revenue"] = pd.to_numeric(filtered["revenue"], errors="raise")What the interviewer checks: The interviewer is checking whether you can filter and convert data without changing the original or using chained assignment.
- Use
How would you add a new column to a table or DataFrame?
Asked once · last asked Aug 25 · Write code · Junior
Show answer
In pandas, I add a column with
df['new_column'] = values. The values can be a constant, a list, or a calculation using existing columns. I can also usedf.assign()to return a new DataFrame instead of changing the original.- A constant fills every row with the same value.
- A list or array must have the same length as the DataFrame.
- A Series aligns by index labels, not row position.
- Assigning to an existing column name replaces that column.
Pythonimport pandas as pd df = pd.DataFrame({'price': [10, 20], 'quantity': [2, 3]}) df['total'] = df['price'] * df['quantity']What the interviewer checks: The interviewer checks whether you can create columns and understand how pandas matches values to rows.
How do you identify a feature's data type in pandas?
Asked once · last asked Sep 20 · Tooling · Junior
Show answer
Use
df['column'].dtypeto check one feature's data type, ordf.dtypesto check all columns. Useastype()to convert a column to a chosen type. For text containing numbers or dates, usepd.to_numeric()orpd.to_datetime().df.info()shows column types and non-null counts.- Assign the converted result back to the column.
- An
objectcolumn may contain strings or mixed Python types. errors='coerce'turns invalid values into missing values in numeric or date conversion.
Pythonimport pandas as pd df = pd.DataFrame({'age': ['25', 'unknown', '40']}) print(df['age'].dtype) print(df.dtypes) df['age'] = pd.to_numeric(df['age'], errors='coerce') df['age'] = df['age'].astype('Int64') print(df['age'].dtype)What the interviewer checks: The interviewer checks whether you can inspect column types and convert them while handling invalid or missing values.
Other ways it was asked
- “How do you convert a feature's data type in pandas?”
In pandas, how would you replace missing values in the `review_text` column with an empty string in place to save memory? Which operation is most appropriate, and why?
Asked once · last asked Aug 1 · Tooling · Junior
Show answer
Use
df.fillna({"review_text": ""}, inplace=True)to replace missing values only in that column. This updates the existing DataFrame and avoids chained assignment. However,inplace=Truedoes not guarantee lower memory use, because pandas may still copy data internally.- The dictionary limits replacement to
review_text. - Avoid
df["review_text"].fillna(..., inplace=True); it cannot update the DataFrame under Copy-on-Write. inplace=Truereturns None and may still allocate memory.
Pythonimport pandas as pd df = pd.DataFrame({"review_text": ["Good", None]}) df.fillna({"review_text": ""}, inplace=True)What the interviewer checks: The interviewer checks whether you can fill missing values safely without assuming that in-place operations always save memory.
- The dictionary limits replacement to
Pandas basics interview questions
Start with what pandas does, Series and DataFrames, Python list comparisons, and ways to create and inspect datasets. 6 questions.
Pandas CSV and file handling interview questions
File handling questions cover reading and writing files, CSV import options, and pandas in Excel and document workflows. 4 questions.
Pandas indexing and filtering interview questions
Check your understanding of loc and iloc, Boolean mask alignment, row filtering, new columns, and safe updates. 6 questions.
Pandas data cleaning interview questions
Data cleaning questions cover types, nulls, unit conversion, normalization, categorical encoding, and your cleaning project experience. 9 questions.
Could you elaborate on a specific challenge you faced during a project's data-cleaning phase and how you addressed it using SQL and Pandas?
Asked once · last asked Sep 8 · Behavioral · Mid-level
How do you convert miles per gallon to liters per 100 kilometers in pandas?
Asked once · last asked Sep 20 · Tooling · Junior
Why is it important to check and convert data types in pandas?
Asked once · last asked Sep 20 · Concept · Junior
How do you apply normalization in pandas?
Asked once · last asked Sep 20 · Tooling · Junior
How do you convert a categorical variable like fuel type into a numerical format using one-hot encoding in pandas?
Asked once · last asked Sep 20 · Tooling · Junior
How would you clean a typical tabular dataset, and which libraries would you use?
Asked once · last asked Oct 18 · Tooling · Mid-level
Are there direct keywords or methods we can use in pandas for finding null values?
Asked once · last asked Nov 6 · Tooling · Junior
Pandas groupby and aggregation interview questions
Work through grouped calculations, conditional counts, filtering groups by aggregate results, and practical analysis workflows. 6 questions.
Which age groups have more sick patients than healthy patients, and how would you print only patients in those groups?
Asked once · last asked Aug 26 · Write code · Junior
Other ways it was asked
- “Which BMI groups have more sick patients than healthy patients, and how would you print only patients in those groups?”
Which pandas functions would you use for data analysis, and what would you use them for?
Asked once · last asked Sep 9 · Tooling · Mid-level
Other ways it was asked
- “Which pandas functions have you used for data analysis, and what did you use them for?”
How would you use Pandas or Power BI to analyze data in a project, step by step?
Asked once · last asked Sep 9 · Tooling · Junior
How would you calculate the average monthly spend for each plan tier?
Asked once · last asked Sep 18 · Write code · Junior
How would you count companies with more than five automations and fewer than 20 dashboards?
Asked once · last asked Sep 18 · Write code · Junior
How would you count the female patients classified as healthy in a patient dataset?
Asked once · last asked Aug 26 · Write code · Junior
Other ways it was asked
- “How many healthy patients are female?”
Pandas merge and join interview questions
Compare merge and concat, then check join types, overlapping column names, key validation, and unexpected extra rows after a merge. 4 questions.
When you merge two pandas DataFrames that both contain a column with the same name, such as status, how do you handle it to avoid confusion in the result?
Asked once · last asked Jun 25 · Scenario · Junior
When a data merge involving groupby and aggregation produces duplicate rows, what checks do you perform on the merge keys and cardinality, and how do you prevent silent row multiplication?
Asked once · last asked Nov 19 · Scenario · Mid-level
What join types does pandas merge support, and how does an inner join work?
Asked once · last asked Nov 16 · Concept · Junior
Other ways it was asked
- “What other join types can you specify in a pandas merge besides an outer join?”
- “What happens when you use an inner join in a pandas merge?”
Pandas time series and rolling window interview questions
Time series questions cover datetime parsing, daily event counts, rolling, resampling, as-of joins, and financial calculations that avoid using future data. 6 questions.
In pandas, how would you efficiently compute per-user rolling seven-day metrics from event logs while ensuring correct time ordering and handling missing days?
Asked once · last asked May 3 · Tooling · Mid-level
For computing per-user rolling seven-day metrics from event logs, when would you use pandas groupby().rolling() versus groupby().resample(), and how do their window definitions differ?
Asked once · last asked May 3 · Concept · Mid-level
You receive a log file where each line has a user ID, timestamp, and action. How would you write a Python script using pandas to load the file, parse the timestamp into a datetime type, and compute the number of actions per user per day?
Asked once · last asked May 18 · Write code · Junior
In pandas and NumPy, how would you implement a point-in-time rolling regression that uses only past data each day, and align the betas to calculate next-day residual returns?
Asked once · last asked Oct 10 · Write code · Senior
In Python, how would you implement an as-of join that maps each trade decision timestamp to the latest available macro vintage by release time at scale across many series?
Asked once · last asked Oct 15 · Write code · Senior
In pandas/NumPy, how do you compute and plot a rolling out-of-sample IC rank correlation between a signal and next-day returns, ensuring no overlap or lookahead in the return alignment?
Asked once · last asked Oct 15 · Write code · Senior
Pandas large data and memory optimization interview questions
Explore chunked aggregation, memory-safe cleaning, consistent Parquet schemas, pandas limitations, and when to choose distributed alternatives. 10 questions.
Can Pandas query distributed data, and what tools or approaches would you use instead?
Asked once · last asked Sep 9 · Concept · Mid-level
In pandas, how would you design a memory-efficient pipeline to read and aggregate a 50 GB CSV, grouping by customer_id and computing sums without loading the whole file at once?
Asked once · last asked Jun 25 · Scenario · Senior
When processing a large CSV in pandas chunks, how would you combine partial group-by results to produce accurate final sums per customer_id?
Asked once · last asked Jun 25 · Scenario · Mid-level
How would you process millions of data records using Excel or Python?
Asked once · last asked Sep 3 · Scenario · Mid-level
When cleaning a 50 GB CSV with pandas where some numeric columns contain mixed types and bad tokens, how would you design a memory-safe pipeline to coerce types, track rejected rows, and write clean Parquet?
Asked once · last asked Sep 7 · Tooling · Senior
In a chunked pandas pipeline, how would you ensure deterministic typing and consistent category or string handling so the final Parquet schema does not drift?
Asked once · last asked Sep 7 · Tooling · Senior
What would you use to find key insights in 5 million records?
Asked once · last asked Sep 9 · Scenario · Mid-level
Can Pandas handle analysis of 5 million records, and what factors would determine whether it is appropriate?
Asked once · last asked Sep 9 · Scenario · Mid-level
What are the disadvantages of using pandas?
Asked once · last asked Sep 22 · Concept · Mid-level
Pandas testing and multithreading interview questions
Review generated code, shared-DataFrame race conditions, safe worker design, and ways to test parallel results. 4 questions.
What code patterns can indicate that multiple threads may cause a race condition when writing to a shared DataFrame?
Asked once · last asked Nov 9 · Scenario · Senior
Other ways it was asked
- “How can multiple threads processing separate columns still cause race conditions when writing to a shared DataFrame?”
How would you review AI-generated pandas or scikit-learn code to ensure its quality?
Asked once · last asked Jun 15 · Tooling · Mid-level
How would you test parallel DataFrame augmentation for correct rolling means, data corruption, and race conditions?
Asked once · last asked Nov 9 · Scenario · Mid-level
Other ways it was asked
- “How would you test that a parallel augmentation produces correct and consistent rolling means for each DataFrame column?”
- “How would you test a parallel DataFrame augmentation for data corruption and race conditions?”
How would you design parallel DataFrame workers to prevent race conditions and keep results consistent?
Asked once · last asked Nov 9 · Scenario · Senior
Other ways it was asked
- “How would you design a worker function to process each DataFrame column and maintain data consistency when multiple threads write concurrently?”
- “How would you change thread synchronization or data handling to prevent race conditions in a parallel DataFrame augmentation function?”
Related interview questions
- Data Engineer interview questions
- Data Scientist interview questions
- Data Analyst interview questions
- Financial Analyst interview questions
- Machine Learning Engineer interview questions
- AI Engineer interview questions
- AI Trainer interview questions
- SQL interview questions
- MySQL interview questions
- PostgreSQL interview questions
- Oracle and PL/SQL interview questions
- MongoDB and NoSQL interview questions
- ETL and Data Pipelines interview questions
- Data Modeling interview questions
- Spark, PySpark and Databricks interview questions
- Snowflake interview questions
- Azure Data Factory interview questions
- Power BI interview questions
- Excel interview questions
Read next
- How to prepare for a job interview without memorizing
- How to answer behavioral interview questions with stories
- Best AI interview copilot tools in 2026
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Pandas interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
33 interviews, 29 candidates, Jan 2026 to Nov 2026. Updated every month with new interviews.
Or add the Chrome extension