<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 What are the ten most common movie names of all time?
Step1:  Which three years of the 1930s saw the most films released?
Step2:  Plot the number of films that have been released each decade over the history of cinema.
Step3:  Plot the number of "Hamlet" films made each decade.
Step4:  Plot the number of "Rustler" characters in each decade of the history of film.
<ASSISTANT_TASK:>
Python Code:
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
<END_TASK>