Other approachfor label being suddenly <type 'numpy.float64'>

should be <type 'long'>

IndexError: arrays used as indices must be integer (or boolean)