stNick = release_dates[release_dates.title.str.contains('Christmas')]
stNick.date.dt.month.value_counts().sort_index().plot(kind='bar')

"""
Explanation: Make a bar plot of the months in which movies with "Christmas" in their title tend to be released in the USA.
End of explanation
"""


frodoBaggins = release_dates[release_dates.title.str.startswith('The Hobbit')]
frodoBaggins.date.dt.month.value_counts().sort_index().plot(kind='bar')

"""
Explanation: Make a bar plot of the months in which movies whose titles start with "The Hobbit" are released in the USA.
End of explanation
"""


ronJeremy = release_dates[release_dates.title.str.contains('Romance')]
ronJeremy.date.dt.dayofweek.value_counts().sort_index().plot(kind='bar')

"""
Explanation: Make a bar plot of the day of the week on which movies with "Romance" in their title tend to be released in the USA.
End of explanation
"""


jamesBond = release_dates[release_dates.title.str.contains('Action')]
jamesBond.date.dt.dayofweek.value_counts().sort_index().plot(kind='bar')

"""
Explanation: Make a bar plot of the day of the week on which movies with "Action" in their title tend to be released in the USA.
End of explanation
"""


judiDench = pd.merge(cast[(cast.name=='Judi Dench')],release_dates[release_dates.country=='USA'])

judiDench[judiDench.year//10 == 199]

"""
Explanation: On which date was each Judi Dench movie from the 1990s released in the USA?
End of explanation
"""


judiDench.date.dt.month.value_counts().sort_index()

"""
Explanation: In which months do films with Judi Dench tend to be released in the USA?
End of explanation
"""


tommyC =pd.merge(cast[(cast.name=='Tom Cruise')],release_dates[release_dates.country=='USA'])

tommyC.date.dt.month.value_counts().sort_index()

"""
Explanation: In which months do films with Tom Cruise tend to be released in the USA?
End of explanation
"""


