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 24fdde6 commit b09a160Copy full SHA for b09a160
pandas/tests/apply/test_invalid_arg.py
@@ -18,7 +18,6 @@
18
DataFrame,
19
Series,
20
date_range,
21
- notna,
22
)
23
import pandas._testing as tm
24
@@ -150,8 +149,6 @@ def test_transform_axis_1_raises():
150
149
Series([1]).transform("sum", axis=1)
151
152
153
-# TODO(CoW-warn) should not need to warn
154
-@pytest.mark.filterwarnings("ignore:Setting a value on a view:FutureWarning")
155
def test_apply_modify_traceback():
156
data = DataFrame(
157
{
@@ -207,11 +204,6 @@ def transform(row):
207
204
row["D"] = 7
208
205
return row
209
206
210
- def transform2(row):
211
- if notna(row["C"]) and row["C"].startswith("shin") and row["A"] == "foo":
212
- row["D"] = 7
213
- return row
214
-
215
msg = "'float' object has no attribute 'startswith'"
216
with pytest.raises(AttributeError, match=msg):
217
data.apply(transform, axis=1)
0 commit comments