Use Dataframe.equals not eq
The equals()
method on a Pandas Dataframe considers nulls/NaNs in the same location as being equal, whereas the __eq__()
method doesn't.
The equals()
method on a Pandas Dataframe considers nulls/NaNs in the same location as being equal, whereas the __eq__()
method doesn't.