We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fbe6ac commit 9d2d770Copy full SHA for 9d2d770
pandas/tests/frame/methods/test_dtypes.py
@@ -3,8 +3,6 @@
3
import numpy as np
4
import pytest
5
6
-from pandas._config import using_string_dtype
7
-
8
from pandas.core.dtypes.dtypes import DatetimeTZDtype
9
10
import pandas as pd
@@ -135,13 +133,9 @@ def test_dtypes_timedeltas(self):
135
133
)
136
134
tm.assert_series_equal(result, expected)
137
138
- @pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
139
def test_frame_apply_np_array_return_type(self, using_infer_string):
140
# GH 35517
141
df = DataFrame([["foo"]])
142
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"])
+ expected = Series(np.array("bar"))
147
0 commit comments