From 281dadc5fbe8c49df12125dec66040dd55d69e49 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Fri, 10 Jun 2022 14:42:34 -0400 Subject: DOC: Specify constraints of method in docstring --- numpy/lib/arraysetops.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'numpy/lib/arraysetops.py') diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 6320ea1a5..a08c912d6 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -551,7 +551,8 @@ def in1d(ar1, ar2, assume_unique=False, invert=False, method='auto'): - If 'sort', will use a sort-based approach. - If 'dictionary', will use a key-dictionary approach similar - to a radix sort. + to a radix sort. This is only available for boolean and + integer arrays. - If 'auto', will automatically choose the method which is expected to perform the fastest, which depends on the size and range of `ar2`. For larger sizes, @@ -749,7 +750,8 @@ def isin(element, test_elements, assume_unique=False, invert=False, - If 'sort', will use a sort-based approach. - If 'dictionary', will use a key-dictionary approach similar - to a radix sort. + to a radix sort. This is only available for boolean and + integer arrays. - If 'auto', will automatically choose the method which is expected to perform the fastest, which depends on the size and range of `ar2`. For larger sizes, -- cgit v1.2.1