My data look like this
>df
Employee Entries
0 A abc,sed,yrs,sef
1 B wes,det,fyd
I want to count how many words are there in each row for column 'entries'. So first row is 4, second one 3.
I tried
# Count Comma and add 1
df['Entries_Count'] = df.Entries.str.count(',')+1
Which would be okay I some rows were not empty.
So how do i count elements in each cell. Also this is not a list, but a string.