In : all(lambda a, b: a = b for a, b in zip(A.values, B.values)) In : all(lambda a, b: a = b for a, b in zip(A, B)) This benefit is lost if youĬhange the way equality works for *some* of the Python types (like None)! Keep their Python types because they want the objects they put in the I think that people finds useful to not immediately convert to NaN and On Fri, at 6:23 AM, Massimo Santini wrote: I don't think anyone can really think that an inconsistent behaviour is a good thing… I spent quite some time (with two dataframes of tens of thousands of elements of different dtypes) to get why there was a difference when, looking at the corresponding rows, all the values where equal! Having an inconsistent behaviour and leaving None being as such but comparing them as different violates the principle of least astonishment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |