How pandas .corr() handles non-numeric columns and missing values in a correlation matrix, and why it matters
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Overview: Asks how pandas computes a correlation matrix when a DataFrame has text or categorical columns and missing values, and why those defaults can mislead an analysis. Tests practical pandas knowledge, how missing data changes the sample behind each correlation, and when the resulting matrix stops being valid.