"np.float64(1000.0)" is a variable in Python and it won't be accepted by MySQL.
Parameters : (2.0, np.float64(1000.0)) Maybe, it should be: (2.0, 1000.0)
I'm not sure. It might be a problem with "numpy".