From e7f6e2d74724c19dee3c49be56bdd76b72981707 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 29 Dec 2023 19:02:01 +0100 Subject: [PATCH] Create README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- numpy/unique/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 numpy/unique/README.md diff --git a/numpy/unique/README.md b/numpy/unique/README.md new file mode 100644 index 0000000..8064265 --- /dev/null +++ b/numpy/unique/README.md @@ -0,0 +1,27 @@ +# Unique +{:.no_toc} + + + +## The goal + + +Questions to [David Rotermund](mailto:davrot@uni-bremen.de) + + +## [numpy.unique](https://numpy.org/doc/stable/reference/generated/numpy.unique.html) + +```python +numpy.unique(ar, return_index=False, return_inverse=False, return_counts=False, axis=None, *, equal_nan=True) +``` + +> Find the unique elements of an array. +> +> Returns the sorted unique elements of an array. There are three optional outputs in addition to the unique elements: +> * the indices of the input array that give the unique values +> * the indices of the unique array that reconstruct the input array +> * the number of times each unique value comes up in the input array +