From e85233f414ba7c7a20ec7c61e3733f666a0046fd Mon Sep 17 00:00:00 2001 From: mattip Date: Wed, 14 Nov 2018 18:58:02 -0800 Subject: DEP: remove deprecated numpy.lib.function_base.unique --- numpy/lib/function_base.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 07bdb92ba..5f87c8b2c 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1621,25 +1621,6 @@ def trim_zeros(filt, trim='fb'): last = last - 1 return filt[first:last] - -@deprecate -def unique(x): - """ - This function is deprecated. Use numpy.lib.arraysetops.unique() - instead. - """ - try: - tmp = x.flatten() - if tmp.size == 0: - return tmp - tmp.sort() - idx = concatenate(([True], tmp[1:] != tmp[:-1])) - return tmp[idx] - except AttributeError: - items = sorted(set(x)) - return asarray(items) - - def _extract_dispatcher(condition, arr): return (condition, arr) -- cgit v1.2.1