From ce5f740c9ec6eb6d076a4b5a6be89cb990356509 Mon Sep 17 00:00:00 2001 From: gabrielclow Date: Thu, 7 Dec 2017 16:23:24 -0200 Subject: [PATCH] Documentation fix for method last_valid_index Documentation was showing "Return index for first non-NA/null value" for both first_valid_index and last_valid_index methods. Fixed by switching "first" to "last" --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 68cf5dd7161e3..9ce6b6148be56 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4320,7 +4320,7 @@ def first_valid_index(self): return valid_indices[0] if len(valid_indices) else None @Appender(_shared_docs['valid_index'] % { - 'position': 'first', 'klass': 'DataFrame'}) + 'position': 'last', 'klass': 'DataFrame'}) def last_valid_index(self): if len(self) == 0: return None