We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aff89e commit e4b3207Copy full SHA for e4b3207
tests/test_at.py
@@ -73,7 +73,10 @@ def x(request):
73
("max", 25, [10, 25, 30]),
74
],
75
)
76
-def test_operations(x, copy, op, arg, expect):
+def test_update_ops(x, copy, op, arg, expect):
77
+ if is_pydata_sparse_array(x):
78
+ pytest.skip("at() does not support updates on sparse arrays")
79
+
80
with assert_copy(x, copy):
81
y = getattr(at(x, slice(1, None)), op)(arg, copy=copy)
82
assert isinstance(y, type(x))
@@ -155,9 +158,9 @@ def test_get_fancy_indices(x, idx, tuple_index):
155
158
156
159
157
160
def test_variant_index_syntax(x):
- y = at(x)[:2].set(40)
161
+ y = at(x)[:2].get()
162
- assert_array_equal(y, [40, 40, 30])
163
+ assert_array_equal(y, [10, 20])
164
165
with pytest.raises(ValueError):
166
at(x, 1)[2]
0 commit comments