From f49051c5e49f05f9e92d8f19bcea1d2adb6f0251 Mon Sep 17 00:00:00 2001 From: Linus <95619282+linus-md@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:10:24 +0100 Subject: [PATCH 1/3] DOC: Improve df.equals() docstring --- pandas/core/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ef10958ac1153..ff8396aa555ef 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1451,8 +1451,8 @@ def equals(self, other: object) -> bool_t: the same location are considered equal. The row/column index do not need to have the same type, as long - as the values are considered equal. Corresponding columns must be of - the same dtype. + as the values are considered equal. Corresponding columns index + must be of the same dtype. Parameters ---------- From bd9a22904fcff9f9d41d9e413768b9f872fb4bee Mon Sep 17 00:00:00 2001 From: Linus Sommer <95619282+linus-md@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:12:48 +0100 Subject: [PATCH 2/3] Update generic.py --- pandas/core/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ff8396aa555ef..a19136c61549e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1451,8 +1451,8 @@ def equals(self, other: object) -> bool_t: the same location are considered equal. The row/column index do not need to have the same type, as long - as the values are considered equal. Corresponding columns index - must be of the same dtype. + as the values are considered equal. Corresponding columns and + index must be of the same dtype. Parameters ---------- From 5e6ab358ffb150d6a4d2744c65a311d413a79606 Mon Sep 17 00:00:00 2001 From: Linus <95619282+linus-md@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:56:49 +0100 Subject: [PATCH 3/3] Update --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a19136c61549e..e46a0aa044b6d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1451,7 +1451,7 @@ def equals(self, other: object) -> bool_t: the same location are considered equal. The row/column index do not need to have the same type, as long - as the values are considered equal. Corresponding columns and + as the values are considered equal. Corresponding columns and index must be of the same dtype. Parameters