Skip to content

Commit 5b18530

Browse files
authored
Another solution to question 96.
We can use np.unique with axis=0 to return unique rows of an array. For NumPy >= 1.13
1 parent 5ec27f5 commit 5b18530

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

100_Numpy_exercises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,8 @@ _, idx = np.unique(T, return_index=True)
11571157
uZ = Z[idx]
11581158
print(uZ)
11591159

1160-
# Another solution, for NumPy >= 1.13
11611160
# Author: Andreas Kouzelis
1161+
# For NumPy >= 1.13
11621162
uZ = np.unique(Z, axis=0)
11631163
print(uZ)
11641164
```

0 commit comments

Comments
 (0)