LearnPy Hub
← Pandas: Cleaning & Preprocessing problems
Medium

Fill With the Mean

Fill each missing math mark with the mean of the math column (and english with the english mean). Print the filled table as name math english with 1 decimal. Each column has at least one value.

Input

Lines 'name math english' ('-' = missing), then END.

Output

Lines.

Sample 1

Input
Mim 88 79
Rafi - 91
Sara 95 -
Tuhin 70 -
END
Output
Mim 88.0 79.0
Rafi 84.3 91.0
Sara 95.0 85.0
Tuhin 70.0 85.0

Sample 2

Input
A 1 2
END
Output
A 1.0 2.0
solution.py
Output appears here
Fill With the Mean · Python practice problem · LearnPy Hub