From 80fdc33706d60e5ce9c20dc69dd19eb266ee0d46 Mon Sep 17 00:00:00 2001 From: Sven Geboers Date: Sun, 26 Mar 2023 16:47:58 +0200 Subject: [PATCH] typo --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 21b314f..829dcf3 100644 --- a/main.py +++ b/main.py @@ -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)