I want to calculate the count of how many names there are included in the the column of dataframe in Python.
I get the column names from dataframe as defined command
df["Names_Column"]
Here is the values of one column in dataframe
Names_Column
Damandeep Singh Baggan, Smita Malhotra, Baba Sehgal, Deepak Chachra
Damandeep Singh Baggan, Smita Malhotra, Deepak Chachra
...
I want to get a result of a count like this.
Name Count
Damandeep Singh Baggan 4
Deepak Chachra 3
Smita Malhotra 2
...
I can try to this code to seperate names but I couldn't do it.
separate = df["Names_Column"].str.split(",")
How can I do it?