Skip to content
4 changes: 4 additions & 0 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5899,6 +5899,10 @@ def _construct_result(self, result) -> "DataFrame":
-----
Matching NaNs will not appear as a difference.

Can only compare identically-labeled DataFrame objects,
this means DataFrames with the same shape and
identical row, column labels.

Examples
--------
>>> df = pd.DataFrame(
Expand Down