I'd like to post the Top10 most present actors/actresses in American productions with an average score above 7.
I've tried several combinations and I've searched on stack but I really can't figure it out
df['actors'] = pd.Series(df['cast'].str.split(',', expand=True).stack().reset_index(drop=True))
top_actors = df[df['country'] == 'United States']
top_actors = df[df.actors != 'No Actors'].set_index('averageRating').actors.str.split(', ', expand=True).stack().reset_index(level=1, drop=True)
plt.figure(figsize=(13,7))
plt.title('Top 10 des acteurs américain')
sns.countplot(y = top_actors, order=top_actors.value_counts().index[:10], palette='Blues')
plt.show()