Checking if DataFrames are Equal
Explore various techniques for debugging pandas.
We'll cover the following...
The first technique we’ll explore is checking whether two DataFrames are equal. This is especially useful after serializing and deserializing data and, unfortunately, is a little more difficult than it should be. We can use the equals
method, which will check if two DataFrames are equal, but if they’re not, diagnosing the problem is hard.
Let’s step through an example with our Dirty Devil ...