From 0134de63b2ff7c729cdd05671b7ab5c65c3c37ba Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Fri, 28 Jun 2019 21:26:05 +0200 Subject: [PATCH] DOC: clarify that Index.equals(non_index) returns False closes #14411 --- pandas/core/indexes/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index cb5b4a6c8993c..c96d9e2c5f77a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4170,7 +4170,8 @@ def equals(self, other): Returns ------- bool - If two Index objects have equal elements True, otherwise False. + True if "other" is an Index and it has the same elements as calling + index; False otherwise. """ if self.is_(other): return True