File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5891,14 +5891,23 @@ def _construct_result(self, result) -> DataFrame:
5891
5891
The resulting index will be a MultiIndex with 'self' and 'other'
5892
5892
stacked alternately at the inner level.
5893
5893
5894
+ Raises
5895
+ ------
5896
+ ValueError
5897
+ When the two DataFrames don't have identical labels or shape.
5898
+
5894
5899
See Also
5895
5900
--------
5896
5901
Series.compare : Compare with another Series and show differences.
5902
+ DataFrame.equals : Test whether two objects contain the same elements.
5897
5903
5898
5904
Notes
5899
5905
-----
5900
5906
Matching NaNs will not appear as a difference.
5901
5907
5908
+ Can only compare identically-labeled
5909
+ (i.e. same shape, identical row and column labels) DataFrames
5910
+
5902
5911
Examples
5903
5912
--------
5904
5913
>>> df = pd.DataFrame(
You can’t perform that action at this time.
0 commit comments