File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 18
18
DataFrame ,
19
19
Series ,
20
20
date_range ,
21
- notna ,
22
21
)
23
22
import pandas ._testing as tm
24
23
@@ -150,8 +149,6 @@ def test_transform_axis_1_raises():
150
149
Series ([1 ]).transform ("sum" , axis = 1 )
151
150
152
151
153
- # TODO(CoW-warn) should not need to warn
154
- @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
155
152
def test_apply_modify_traceback ():
156
153
data = DataFrame (
157
154
{
@@ -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
207
msg = "'float' object has no attribute 'startswith'"
216
208
with pytest .raises (AttributeError , match = msg ):
217
209
data .apply (transform , axis = 1 )
You can’t perform that action at this time.
0 commit comments