NaN propagation masks model failure

Code reviewMedium16 minDatabricks style

Your task

Review this Python metric computation.

The pipeline keeps printing 'clean run' with RMSE 0.0 and the model is declared excellent. What's actually happening?