Skip to content

Commit 3a606ad

Browse files
committed
TST: add test for getting array from series
1 parent 3d135f3 commit 3a606ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/arrays/test_array.py

+7
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ def test_array_copy():
182182
assert np.shares_memory(a, b._ndarray) is True
183183

184184

185+
def test_array_from_series():
186+
# GH38543
187+
np.array([pd.Series({0: 0})])
188+
np.array([pd.Series({"a": "a"})])
189+
np.array([pd.Series({1: 1})])
190+
191+
185192
cet = pytz.timezone("CET")
186193

187194

0 commit comments

Comments
 (0)