typo
This commit is contained in:
@@ -43,12 +43,11 @@ plt.savefig('files/all_weekdays.png')
|
||||
plt.close()
|
||||
|
||||
data.groupby(['hour']).count()['count'].plot.bar(x='hour', align='center')
|
||||
plt.title('Hourly frquency of all time')
|
||||
plt.title('Hourly frequency of all time')
|
||||
plt.savefig('files/all_hour.png')
|
||||
plt.close()
|
||||
|
||||
# Calculate on which day the most coffee was made
|
||||
monthly['count'] = 1
|
||||
aggregated = monthly.groupby(['day']).count()['count']
|
||||
message1 = 'Last month, coffee was made {amount} times.'.format(amount=len(monthly)) + ' Most coffee was made on day {day} of the month, with a total amount of {amount} times.'.format(day=aggregated.idxmax(),amount=aggregated.max()) + ' From the start of this chat, a grand total amount of {amount} times coffee was made.'.format(amount=grand_total)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user