................ so if it's a type error, say it's a type error, if it's a value error say it's a value error .....?


Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import numpy as np
>>> a = np.array(['iama ','carro', 't ...'],dtype='S5')
>>> a
array(['iama ', 'carro', 't ...'], 
      dtype='|S5')
>>> np.bincount(a)

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    np.bincount(a)
TypeError: array cannot be safely cast to required type
>>> 

ta daaaa lol :8ball: