1 | initial version |
When comparing values in a Pandas DataFrame with a specified value, Pandas rounds the values using the NumPy function numpy.isclose()
. This function checks whether two floating-point values are almost equal within a specified tolerance range, which is usually around 1e-9.
This helps to handle cases where there might be slight rounding errors or precision differences in the stored values, ensuring that the comparison works correctly.