image_output_1.png
import matplotlib.pyplot as plt

data.shape

Color_Count = data.color.value_counts()
idx = range(2)
labels = ['Color', 'Black & White']
plt.xticks(idx, labels)

Director = data.director_name.value_counts()
D_Name = Director.head(n=10).index
New_D = data[data['director_name'].isin(D_Name)]
New_D.pivot_table(index=['director_name', 'imdb_score'], aggfunc='mean')
plt.figure(1, figsize=(12, 6))
plt.subplot(1, 2, 1)
Director.head(n=10).sort_index().plot(kind='bar')
plt.title('Top 10 directors that have most volume movies')
plt.subplot(1, 2, 2)
New_D.groupby(['director_name'])['imdb_score'].mean().plot(kind='bar')
plt.xlabel('')
plt.title("Top 10 direcotors' average IMDB scores")
plt.show()