diff options
Diffstat (limited to 'numpy/_array_api/_set_functions.py')
-rw-r--r-- | numpy/_array_api/_set_functions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/_array_api/_set_functions.py b/numpy/_array_api/_set_functions.py index 7603b6b30..fd1438be5 100644 --- a/numpy/_array_api/_set_functions.py +++ b/numpy/_array_api/_set_functions.py @@ -1,4 +1,9 @@ import numpy as np def unique(x, /, *, return_counts=False, return_index=False, return_inverse=False, sorted=True): + """ + Array API compatible wrapper for :py:func:`np.unique <numpy.unique>`. + + See its docstring for more information. + """ return np.unique(x, return_counts=return_counts, return_index=return_index, return_inverse=return_inverse, sorted=sorted) |