len(cast[cast.title == 'Inception'])

"""
Explanation: How many actors/actresses are credited in the movie Inception?
End of explanation
"""


cast[cast.title == 'Inception'].sort_values('n').head(4)[['character', 'name']]

"""
Explanation: What are the names of the 4 leading character in the movie Inception and who plays them?
End of explanation
"""


c = cast
c = c[c.character == 'The Stranger']
len(c)

"""
Explanation: How many people have played a role called "The Stranger"?
End of explanation
"""


titles = cast[['title', 'year']].drop_duplicates().reset_index(drop=True)
t = titles
t = t[t.title.str.startswith('C')]
t = t.sort_values('year', ascending=False)
t.head(10)

len(t)

"""
Explanation: How many movies starts with C?
End of explanation
"""


