We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4db9745 commit 033aa95Copy full SHA for 033aa95
pandas/tests/series/test_constructors.py
@@ -1035,6 +1035,13 @@ def test_constructor_dict(self):
1035
expected.iloc[1] = 1
1036
tm.assert_series_equal(result, expected)
1037
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
+
1045
def test_constructor_dict_order(self):
1046
# GH19018
1047
# initialization ordering: by insertion order if python>= 3.6, else
0 commit comments