Replace Missing With Mean
#3 · 3 of 50Free sampleQuestion
Replace Missing With Mean
Create a pandas DataFrame with a column 'B' containing [10,20,None,40]. Replace the missing value with the mean of the column, matching the expected output. Round to 1 decimal place.
solution.py
Loading editor…
Sign up to unlock
The reference answer is one click away.
Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.
- Reference answer + explanation revealed after each attempt
- GPT tutor for every problem
- Progress saved on the platform
- 1,598 graded exercises
- Free forever — no credit card
Sign up to unlock
The reference answer is one click away.
Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.
- Reference answer + explanation revealed after each attempt
- GPT tutor for every problem
- Progress saved on the platform
- 1,598 graded exercises
- Free forever — no credit card
