July 2017
Beginner to intermediate
312 pages
7h 27m
English
In order to remove the bias of the first week, which we have seen previously, we will subset that dataframe to get only the data that appears after 2013-11-15:
dx = df[df.index > '2013-11-15'] ax = dx.groupby(dx.index.weekday)['comments'].count().plot(kind = 'bar', title = 'Number of comments per day') ax.set_xticklabels(['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']) plt.show()
Then we print a bar chart that shows the number of comments per day:

The result of the visualization shows us that the video we chose has a stable rate of engagement with respect to the days of weeks, ...
Read now
Unlock full access