Share Missing per Column
Some cells of df are missing (None). Return a dictionary mapping each column name to the fraction of its rows that are missing, as a float between 0 and 1.
Example 1
df {"a":[1,null,3,null],"b":[1,2,3,4]}
returns {"a":0.5,"b":0.0}
a: 2 of 4 are missing, so 0.5. b: 0.0.
Constraints
- At least one row
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.