summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkishimoto-banana <drehbleistift@gmail.com>2020-01-26 19:48:10 +0900
committerkishimoto-banana <drehbleistift@gmail.com>2020-01-26 19:48:10 +0900
commitd2129869c19a9ef8deb19104dee90f25ce2fc108 (patch)
tree370f16a4cf2809f75b3aae0302f4a21253e401df /doc
parent9b7e890b014f6ad3b4288246f0565f7afd6eca84 (diff)
downloadnumpy-d2129869c19a9ef8deb19104dee90f25ce2fc108.tar.gz
DOC: Fix Incorrect document
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/absolute_beginners.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/source/user/absolute_beginners.rst b/doc/source/user/absolute_beginners.rst
index acf9a35b5..64955cd37 100644
--- a/doc/source/user/absolute_beginners.rst
+++ b/doc/source/user/absolute_beginners.rst
@@ -1027,20 +1027,20 @@ argument. To find the unique rows, specify ``axis=0`` and for columns, specify
[ 5 6 7 8]
[ 9 10 11 12]]
-To get the unique rows, occurrence count, and index position, you can use::
+To get the unique rows, index position, and occurrence count, you can use::
- >>> unique_rows, occurence_count, indices = np.unique(a_2d, axis=0,
+ >>> unique_rows, indices, occurence_count = np.unique(a_2d, axis=0,
>>> return_counts=True, return_index=True)
>>> print('Unique Rows: ', '\n', unique_rows)
- >>> print('Occurrence Count:', '\n', occurence_count)
>>> print('Indices: ', '\n', indices)
+ >>> print('Occurrence Count:', '\n', occurence_count)
Unique Rows:
[[ 1 2 3 4]
[ 5 6 7 8]
[ 9 10 11 12]]
- Occurrence Count:
- [0 1 2]
Indices:
+ [0 1 2]
+ Occurrence Count:
[2 1 1]
To learn more about finding the unique elements in an array, see `unique`.