We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24df602 commit 3a19556Copy full SHA for 3a19556
pandas/core/frame.py
@@ -5891,14 +5891,23 @@ def _construct_result(self, result) -> DataFrame:
5891
The resulting index will be a MultiIndex with 'self' and 'other'
5892
stacked alternately at the inner level.
5893
5894
+Raises
5895
+------
5896
+ValueError
5897
+ When the two DataFrames don't have identical labels or shape.
5898
+
5899
See Also
5900
--------
5901
Series.compare : Compare with another Series and show differences.
5902
+DataFrame.equals : Test whether two objects contain the same elements.
5903
5904
Notes
5905
-----
5906
Matching NaNs will not appear as a difference.
5907
5908
+Can only compare identically-labeled
5909
+(i.e. same shape, identical row and column labels) DataFrames
5910
5911
Examples
5912
5913
>>> df = pd.DataFrame(
0 commit comments