Skip to content

Commit 2c7c081

Browse files
louishuynhproost
authored andcommitted
TST: Test Series constructor with dict containing lists and explicit … (pandas-dev#29339)
1 parent dcdf26e commit 2c7c081

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/series/test_constructors.py

+7
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,13 @@ def test_constructor_dict(self):
10351035
expected.iloc[1] = 1
10361036
tm.assert_series_equal(result, expected)
10371037

1038+
def test_constructor_dict_list_value_explicit_dtype(self):
1039+
# GH 18625
1040+
d = {"a": [[2], [3], [4]]}
1041+
result = Series(d, index=["a"], dtype="object")
1042+
expected = Series(d, index=["a"])
1043+
tm.assert_series_equal(result, expected)
1044+
10381045
def test_constructor_dict_order(self):
10391046
# GH19018
10401047
# initialization ordering: by insertion order if python>= 3.6, else

0 commit comments

Comments
 (0)