We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd379bb commit 12f0b6aCopy full SHA for 12f0b6a
pandas/tests/frame/methods/test_dtypes.py
@@ -131,3 +131,10 @@ def test_dtypes_timedeltas(self):
131
index=list("ABCD"),
132
)
133
tm.assert_series_equal(result, expected)
134
+
135
+ def test_frame_apply_np_array_return_type(self):
136
+ # GH 35517
137
+ df = DataFrame([["foo"]])
138
+ result = df.apply(lambda col: np.array("bar"))
139
+ expected = Series(["bar"])
140
+ tm.assert_series_equal(result, expected)
0 commit comments