I have dataframe column, one row contain data:
bloodtype
[{'id': 35,
'type': 'typeO'}]
The column contain different blood type, A,B,AB, and O in other rows.
I ran:
type(df.blood_type)
it returned 'pandas.core.series.Series'
df['blood_type'].str.split(":")[0][2]
it return " 'typeO'}]"
How can I just get typeO, typeA, typeAB
so i could convert them different classes. Thanks