File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
pandas/tests/frame/methods Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 33import numpy as np
44import pytest
55
6- from pandas ._config import using_string_dtype
7-
86from pandas .core .dtypes .dtypes import DatetimeTZDtype
97
108import pandas as pd
@@ -144,13 +142,9 @@ def test_dtypes_timedeltas(self):
144142 )
145143 tm .assert_series_equal (result , expected )
146144
147- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
148145 def test_frame_apply_np_array_return_type (self , using_infer_string ):
149146 # GH 35517
150147 df = DataFrame ([["foo" ]])
151148 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" ))
156150 tm .assert_series_equal (result , expected )
You can’t perform that action at this time.
0 commit comments