You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/API_specification/set_functions.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,9 @@ Each `nan` value should have a count of one, while the counts for signed zeros s
47
47
- a namedtuple `(values, indices, inverse_indices, counts)` whose
48
48
49
49
- first element must have the field name `values` and must be an array containing the unique elements of `x`. The array must have the same data type as `x`.
50
-
- second element must have the field name `indices` and must be an array containing the indices (first occurrences) of `x` that result in `values`. The array must have the same shape as `values` and must have the default integer data type.
51
-
- third element must have the field name `inverse_indices` and must be an array containing the indices of `values` that reconstruct `x`. The array must have the same shape as `x` and must have the default integer data type.
52
-
- fourth element must have the field name `counts` and must be an array containing the number of times each unique element occurs in `x`. The returned array must have same shape as `values` and must have the default integer data type.
50
+
- second element must have the field name `indices` and must be an array containing the indices (first occurrences) of `x` that result in `values`. The array must have the same shape as `values` and must have the default array index data type.
51
+
- third element must have the field name `inverse_indices` and must be an array containing the indices of `values` that reconstruct `x`. The array must have the same shape as `x` and must have the default array index data type.
52
+
- fourth element must have the field name `counts` and must be an array containing the number of times each unique element occurs in `x`. The returned array must have same shape as `values` and must have the default array index data type.
53
53
54
54
```{note}
55
55
The order of unique elements is not specified and may vary between implementations.
@@ -88,7 +88,7 @@ Each `nan` value should have a count of one, while the counts for signed zeros s
88
88
- a namedtuple `(values, counts)` whose
89
89
90
90
- first element must have the field name `values` and must be an array containing the unique elements of `x`. The array must have the same data type as `x`.
91
-
- second element must have the field name `counts` and must be an array containing the number of times each unique element occurs in `x`. The returned array must have same shape as `values` and must have the default integer data type.
91
+
- second element must have the field name `counts` and must be an array containing the number of times each unique element occurs in `x`. The returned array must have same shape as `values` and must have the default array index data type.
92
92
93
93
```{note}
94
94
The order of unique elements is not specified and may vary between implementations.
@@ -127,7 +127,7 @@ As signed zeros are not distinct, using `inverse_indices` to reconstruct the inp
127
127
- a namedtuple `(values, inverse_indices)` whose
128
128
129
129
- first element must have the field name `values` and must be an array containing the unique elements of `x`. The array must have the same data type as `x`.
130
-
- second element must have the field name `inverse_indices` and must be an array containing the indices of `values` that reconstruct `x`. The array must have the same shape as `x` and have the default integer data type.
130
+
- second element must have the field name `inverse_indices` and must be an array containing the indices of `values` that reconstruct `x`. The array must have the same shape as `x` and have the default array index data type.
131
131
132
132
```{note}
133
133
The order of unique elements is not specified and may vary between implementations.
0 commit comments