Whenever you're ready, walk me through how you'd approach this.
How would you handle a dataset with missing values using Python, and write a clean script to perform the imputation?
Assume the dataset contains mixed numerical and categorical columns, and that the imputed data will later be used for machine learning. Explain how you would choose an imputation strategy, avoid data leakage, preserve categorical types, and validate the quality of the imputed values. Provide production-quality Python code that can be adapted to a supplied CSV dataset.