From 1069c6dade3994bb2fde9d1511ab2f9ffb7dcb0d Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 6 Jan 2020 09:53:55 +0100 Subject: [PATCH] DOC: fix see also in docstring of check_bool_array_indexer --- pandas/core/indexers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py index 0f932f7b849e3..4d45769d2fea9 100644 --- a/pandas/core/indexers.py +++ b/pandas/core/indexers.py @@ -274,14 +274,14 @@ def check_bool_array_indexer(array: AnyArrayLike, mask: AnyArrayLike) -> np.ndar See Also -------- - api.extensions.is_bool_indexer : Check if `key` is a boolean indexer. + api.types.is_bool_dtype : Check if `key` is of boolean dtype. Examples -------- A boolean ndarray is returned when the arguments are all valid. >>> mask = pd.array([True, False]) - >>> arr = pd.Series([1, 2]) + >>> arr = pd.array([1, 2]) >>> pd.api.extensions.check_bool_array_indexer(arr, mask) array([ True, False])