79282321

Date: 2024-12-15 12:38:32
Score: 1
Natty:
Report link

This question would be solved by also changing index to 'who' and removing margins parameter as not needed.

pd.pivot_table(df[df['who'] == 'child'], 
    index = 'who', 
    aggfunc = lambda x: x.isnull().sum())
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anisa B.