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
@@ -135,13 +133,9 @@ def test_dtypes_timedeltas(self):
135
133
)
136
134
tm .assert_series_equal (result , expected )
137
135
138
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
139
136
def test_frame_apply_np_array_return_type (self , using_infer_string ):
140
137
# GH 35517
141
138
df = DataFrame ([["foo" ]])
142
139
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" ))
147
141
tm .assert_series_equal (result , expected )
You can’t perform that action at this time.
0 commit comments