Fixing Python Numpy Typeerror Only Integer Scalar Arrays Can Be

Fixing Python Numpy Typeerror Only Integer Scalar Arrays Can Be