Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas two dataframes equal

>>> df = pd.DataFrame({1: [10], 2: [20]})

>>> exactly_equal = pd.DataFrame({1: [10], 2: [20]}) # Note the same as above

>>> df.equals(exactly_equal)
True
# Two are the same hence true. If not would be false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #dataframes #equal
ADD COMMENT
Topic
Name
5+8 =