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 73a69f8 commit 52eba9fCopy full SHA for 52eba9f
pandas/tests/series/indexing/test_indexing.py
@@ -395,7 +395,10 @@ def test_incorrect_assigment():
395
x = np.random.randn(2, 2)
396
y = pd.Series(range(2))
397
398
- msg = r"shape mismatch: value array of shape \(2,2\) could not be broadcast to indexing result of shape \(2,\)"
+ msg = (
399
+ "shape mismatch: value array of shape \(2,2\) could not be"
400
+ " broadcast to indexing result of shape \(2,\)"
401
+ )
402
with pytest.raises(ValueError, match=msg):
403
y.loc[range(2)] = x
404
0 commit comments