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
@@ -135,13 +133,9 @@ def test_dtypes_timedeltas(self):
135133 )
136134 tm .assert_series_equal (result , expected )
137135
138- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
139136 def test_frame_apply_np_array_return_type (self , using_infer_string ):
140137 # GH 35517
141138 df = DataFrame ([["foo" ]])
142139 result = df .apply (lambda col : np .array ("bar" ))
143- if using_infer_string :
144- expected = Series ([np .array (["bar" ])])
145- else :
146- expected = Series (["bar" ])
140+ expected = Series (np .array ("bar" ))
147141 tm .assert_series_equal (result , expected )
You can’t perform that action at this time.
0 commit comments