How can you reduce a DataFrame's memory usage through dtype downcasting?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Explain how to shrink a pandas DataFrame by downcasting numeric columns to smaller integer and float types and converting repetitive strings to category. Tests memory measurement, safe range and precision checks, and the overflow and cardinality pitfalls of smaller dtypes.