Beginner question. I'm trying to analyse some data from a Trello. I've pulled in the full csv and made a new data frame df2
with three columns: 'Task Name'
, 'Created Date'
and 'Description'
.
Example df(sorry, can't share the csv as it's work data):
Task Names Created Date Description
Lorum ipsum 14/05/2020 Lorum ipsum
Lorum ipsum 13/05/2020 Lorum ipsum
Lorum ipsum 18/04/2020 Lorum ipsum
I want to create a graph of the number of tasks created each month. I've been able to do that with the below but the x-axis ticks display numbers, I'd like them to display month names. Is that possible?
df = pd.read_csv('XXX')
df2 = df[['Task Name', 'Created Date', 'Description']].copy()
df2['date_time'] = pd.to_datetime(df2['Created Date'], format='%d/%m/%Y')
df2.groupby(df2['date_time'].dt.month).size().plot(kind='bar')
Thanks!