How to convert a Numpy 2D array with object dtype to a regular 2D array of floats How to convert a Numpy 2D array with object dtype to a regular 2D array of floats numpy numpy