text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

Ydata = pd.read_csv('../input/youtube-new/USvideos.csv')
original_data = Ydata.copy()

Ydata.apply(lambda x: sum(x.isnull()))

plt.figure(figsize = (16,8))

#Let's verify the correlation of each value
ax = sb.heatmap(Ydata[['views', 'likes', 'dislikes', 'comment_count']].corr(), \
            annot=True, annot_kws={"size": 20}, cmap=cm.coolwarm, linewidths=0.5, linecolor='black')
plt.yticks(rotation=30, fontsize=20) 
plt.xticks(rotation=30, fontsize=20) 
plt.title("\nCorrelation between views, likes, dislikes & comments\n", fontsize=25)
plt.show()

colors = ['#FF6600', '#FFCCCC']
labels = ('likes', 'dislikes')
plt.suptitle('Information on data_split', fontsize=20)
data['Ydata'].value_counts().plot.pie(autopct='%1.2f%%', shadow=True, colors=colors, labels=labels, fontsize=12, startangle=70)