Whenever you're ready, walk me through how you'd approach this.
How do you handle missing or highly imbalanced data in a Python-based machine learning pipeline? Explain your preprocessing, resampling or weighting strategy, validation design, and evaluation metrics. Provide production-quality Python code that prevents leakage and makes the classification threshold explicit.