Notice that there is a problem with the python round and numpy.float64 . See the example below:
In [88]: round(np.float64(16.259766999999947), 4) Out[88]: 16.259799999999998
The only way to fix this is to convert numpy.float64 to float before using the round function, as shown below:
In [89]: round(float(np.float64(16.259766999999947)), 4) Out[89]: 16.2598
source share