Week 2Assignment: Emojify

Hello everyone,
Can someone please let me know why I’d be getting this error message in Wk2 assignment 2? I’ve tried many a things and going by instructions nothing seems to be working here for me :frowning:
I’ve tried taking simple average as well as np.divide but to no avail.

ValueError: operands could not be broadcast together with shapes (50,) (2,) (50,)

Any support would be highly appreciate…
Ankit S Kaushik

Solved by using

and then dividing by count