I have this table
no type
1 123, 234, 345
2 123
3 4567,235
4
I want to count number of strings in column type for each row, so I want to add new column in which shows the count result. The expected result would be:
no type count
1 123, 234, 345 3
2 123 1
3 4567,235 2
4 NaN 0
how can I get the expected result by using pandas?
thanks in advance