Return the rating column with its gaps filled by the column's own mean

pandas · from Missing data

.isna().dropna().fillna().ffill()subset=thresh=pd.NA

Putting the kettle on…

Starting up…

Exercise 4

Return the rating column with its gaps filled by the column's own mean.

your answer
stuck? the lesson behind it
Missing data
Dropping and filling are different claims — and they give different answers.