t = titles
t = t.title.value_counts()
t.head(10)

"""
Explanation: What are the ten most common movie names of all time?
End of explanation
"""


t = titles
t = t[(t.year >= 1930) & (t.year < 1940)]
t = t.year.value_counts()
t.head(3)

"""
Explanation: Which three years of the 1930s saw the most films released?
End of explanation
"""


t = titles
t = t.groupby(t.year // 10 * 10)
t.size().plot(kind='bar')

"""
Explanation: Plot the number of films that have been released each decade over the history of cinema.
End of explanation
"""


t = titles
t = t[t.title == 'Hamlet']
t = t.groupby(t.year // 10 * 10)
t.size().plot(kind="bar")

"""
Explanation: Plot the number of "Hamlet" films made each decade.
End of explanation
"""


c = cast
c = c[c.character == 'Rustler']
c = c.groupby(c.year // 10 * 10)
c.size().plot(kind='bar')

"""
Explanation: Plot the number of "Rustler" characters in each decade of the history of film.
End of explanation
"""


