79224412

Date: 2024-11-25 19:47:35
Score: 0.5
Natty:
Report link

Numpy may be inferring the datatype to be 2 characters for labels = np.array(['No']*10000) since all elements of the array have two characters.

Try labels = np.array(['No']*10000, dtype='<U3')

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zachooz