Skip to main content
1 of 3

While timleathart has already provided the answer, I would like to add here there are cases when rather than choosing df.mean() to substitute your NA values, it is better to choose df.median() - which calculates your median value.

Mean is notorious for taking into consideration even the outliers.

Since you are a beginner, you might want to try both.