Sumeet Kumar Yadav
Sumeet Kumar Yadav

Reputation: 12945

Compare two dataframe in pandas

I am trying to compare two different data frames of pandas. Both the data set are identical but the data frame equal gives false. (df3 == df4) . Why df2 == df3 gives false for each row ? enter image description here

Upvotes: 0

Views: 126

Answers (1)

AlexisG
AlexisG

Reputation: 2474

use the equals method

df3.equals(df4)

You can also compare two df with compare


Here is an issue talking about None is not equal to None

Upvotes: 1

Related Questions