Converting a Series from string
From the pandas documentation while creating a Series , it can take the following input as data:
- array-like
- Iterable
- 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