UNQ_C6 - DataError: No numeric types to aggregate

@Mubsi I am unable to figure out the problem in my code for UNQ_C6 in Week 1 Programming Assignment.

My Lab ID is dejrdayz

Please let me know where I am going wrong, as I am unable to find anything.

Thanks in advance
Abhik

Hi @Abhik_Biswas,

You can check your notebook now, I have fixed your Ex 6.

  • for baseline_risk, you were not making a copy.
  • df.loc[:, 'baseline_risk'], you were setting it to base_risks, when you should have set it to baseline_risk

Cheers,
Mubsi

1 Like