Converting a Series from string
12:32 08 Feb 2026

From the pandas documentation while creating a Series , it can take the following input as data:

  1. array-like
  2. Iterable
  3. Scalar value

While string is also a type of iterable, but when i try to create a Series using string:

s = pd.Series(data= "abcd")
print(s)

I get a Series with only one element (i.e whole string) instead of getting a Series of characters of the string.

0    abcd 
dtype: str
python-3.x pandas string series