Order inside pipeline

Good morning,
I have a question about something we did in this mooc (I met it two times now), imputing and standardize. Which operation should come first? Is there a general rule about that? According to me, it makes sense to first impute before standardizing but in some lecture, we first standardized and then impute, so I’m a bit confused.

Thank you

You can refer to M1 Wrap-Up quiz Q5 SimpleImputer question - #3 by glemaitre58 that give some insights regarding the ordering.

Thank you very much, it’s very clear!