We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40634ac commit 7c7d565Copy full SHA for 7c7d565
pandas/core/reshape/tile.py
@@ -400,7 +400,8 @@ def _bins_to_cuts(
400
)
401
elif labels:
402
raise ValueError(
403
- "User desired bin labels must be passed in as an argument, not just `True`"
+ "User desired bin labels must be passed in as an argument, "
404
+ "not just `True`"
405
406
elif is_list_like(labels):
407
if len(labels) != len(bins) - 1:
pandas/tests/reshape/test_qcut.py
@@ -134,7 +134,7 @@ def test_qcut_labels_true():
134
# issue 13318
135
values = range(5)
136
msg = "User desired bin labels must be passed in as an argument, not just `True`"
137
- with pytest.raises(ValueError, match=msg) as w:
+ with pytest.raises(ValueError, match=msg):
138
qcut(values, 4, labels=True)
139
140
0 commit comments