InterviewStack.io LogoInterviewStack.io

End To End Data Preprocessing & Exploration Questions

Follow a systematic, tool-agnostic data pipeline before deeper analysis: load the data, check shape and dtypes, identify missing values and duplicates, explore distributions, check for outliers, understand class or category balance where relevant, and summarize key statistics. Document findings and build visualizations that surface relationships in the data. This exploration is the foundation for whatever comes next: feature engineering and model selection for predictive/ML work, or clean aggregations and trustworthy KPIs for dashboards and reporting.

MediumTechnical
26 practiced
Write Python code (using pandas and seaborn/matplotlib) to compute a correlation matrix for numeric columns in DataFrame df, generate a heatmap with annotated correlation coefficients, and mask the upper triangle so the plot is easier to read. Note whether you use Pearson or Spearman and why.
HardTechnical
26 practiced
Compare PCA, t-SNE, and UMAP for dimensionality reduction in EDA and before modeling. Discuss assumptions, interpretability, computational cost, choice of parameters (n_components, perplexity, n_neighbors), and how to validate that reduced-dimension representations are meaningful for clustering or visualization.
EasyTechnical
28 practiced
After loading a dataset into pandas/SQL/Excel, what immediate checks and commands would you run to inspect shape and data types, and produce a short one-page summary for stakeholders? Provide concrete commands/examples for pandas and SQL and specify what metrics (row/column counts, null counts, unique counts, sample rows) you would include in the summary.
EasyTechnical
30 practiced
Write a concise Python (pandas) code snippet to load '/data/transactions.csv' into a DataFrame while optimizing memory: read only columns ['id','user_id','amount','transaction_date','status'], set user_id as int32, amount as float32, currency as category (if present), parse transaction_date as datetime, and avoid low-memory pitfalls. Include one-line comments explaining choices.
EasyTechnical
29 practiced
Given a table churn(user_id, churn_flag INT 0/1, plan_type), write SQL to compute overall class balance (counts and percentages of churn=1 vs churn=0) and class balance broken down by plan_type. After computing, suggest quick corrective steps if the dataset is highly imbalanced for modeling.

Unlock Full Question Bank

Get access to hundreds of End To End Data Preprocessing & Exploration interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.