Series constructor skips dtype=str conversion for list data #16605
Labels
Bug
Compat
pandas objects compatability with Numpy or Python functions
Dtype Conversions
Unexpected or buggy dtype conversions
Milestone
Code Example
Output:
Problem description
When creating a
Series
from alist
usingdtype=str
, the data elements are not converted to strings. TheSeries
instance apparently just keeps the original (Python) data type in this case.This problem does not occur when, instead of a
list
, anotherSeries
is used as input data (s5
in the example above). It also does not happen when creatingDataFrame
instances fromlist
data.Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: