I have already completed the separation of the genres for movies now I want to get the number of movies under each each genre, following is my completed code for separating the genres
df['geners_arr']=df['genres'].str.split('|')
df.head()
count_lambda=lambda x: len(x)
df['Genre_count_for_Movie']=df.geners_arr.apply(count_lambda)
df.head(3)`