We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4eb011 commit 823c9aeCopy full SHA for 823c9ae
pandas/tests/series/test_constructors.py
@@ -147,6 +147,11 @@ def test_constructor_single_element_string_type(self):
147
result = pd.Series(13, index=[1], dtype=str)
148
assert result.values.tolist() == ['13']
149
150
+ def test_constructor_string_series_string_type(self):
151
+ # GH 22477
152
+ result = pd.Series('entry', index=[1], dtype=str)
153
+ assert result.values.tolist() == ['entry']
154
+
155
def test_constructor_dtype_str_na_values(self, string_dtype):
156
# https://github.com/pandas-dev/pandas/issues/21083
157
ser = Series(['x', None], dtype=string_dtype)
0 commit comments