diff options
author | MilesCranmer <miles.cranmer@gmail.com> | 2022-06-22 16:57:52 -0400 |
---|---|---|
committer | MilesCranmer <miles.cranmer@gmail.com> | 2022-06-22 16:57:52 -0400 |
commit | c4aa5d8356c0f76550d17b27f034c2c19ffc1767 (patch) | |
tree | 3d89cc7b26a3d0a45f62d143299c50e599be39e3 /numpy/lib/arraysetops.py | |
parent | 408e6119855a8b4d691f7020fae9caa66fa763be (diff) | |
download | numpy-c4aa5d8356c0f76550d17b27f034c2c19ffc1767.tar.gz |
DOC: Rephrase docstring of in1d/isin
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 5d187cf07..e10700785 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -553,7 +553,7 @@ def in1d(ar1, ar2, assume_unique=False, invert=False, *, kind=None): * If 'sort', will use a mergesort-based approach. This will have a memory usage of roughly 6 times the sum of the sizes of `ar1` and `ar2`, not accounting for size of dtypes. - * If 'table', will use a key-dictionary approach similar + * If 'table', will use a lookup table approach similar to a counting sort. This is only available for boolean and integer arrays. This will have a memory usage of the size of `ar1` plus the max-min value of `ar2`. `assume_unique` @@ -772,7 +772,7 @@ def isin(element, test_elements, assume_unique=False, invert=False, *, * If 'sort', will use a mergesort-based approach. This will have a memory usage of roughly 6 times the sum of the sizes of `ar1` and `ar2`, not accounting for size of dtypes. - * If 'table', will use a key-dictionary approach similar + * If 'table', will use a lookup table approach similar to a counting sort. This is only available for boolean and integer arrays. This will have a memory usage of the size of `ar1` plus the max-min value of `ar2`. `assume_unique` |