How this works? If it's converting each item into string i should get first character like "[1,2]"[0]
----> '['
but instead it treating as list
, How?
>>> df = pd.DataFrame({'a':[[1,2],[2,3]]})
>>> df.a.str[0]
0 1
1 2
Name: a, dtype: int64