How does NumPy handle missing (np.nan) and infinite (np.inf) values in operations and aggregations?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how NumPy stores missing and infinite values and what they do to arithmetic, comparisons and aggregations. Tests knowledge of IEEE 754 floating-point special values, NaN propagation, the NaN-aware aggregation functions and correct detection with isnan, isinf and isfinite.