File tree 1 file changed +1
-7
lines changed
pandas/tests/frame/methods
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import pytest
5
5
6
- from pandas ._config import using_string_dtype
7
-
8
6
from pandas .core .dtypes .dtypes import DatetimeTZDtype
9
7
10
8
import pandas as pd
@@ -144,13 +142,9 @@ def test_dtypes_timedeltas(self):
144
142
)
145
143
tm .assert_series_equal (result , expected )
146
144
147
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
148
145
def test_frame_apply_np_array_return_type (self , using_infer_string ):
149
146
# GH 35517
150
147
df = DataFrame ([["foo" ]])
151
148
result = df .apply (lambda col : np .array ("bar" ))
152
- if using_infer_string :
153
- expected = Series ([np .array (["bar" ])])
154
- else :
155
- expected = Series (["bar" ])
149
+ expected = Series (np .array ("bar" ))
156
150
tm .assert_series_equal (result , expected )
You can’t perform that action at this time.
0 commit comments