I am trying to plot graph using matplotlib in Jupyter python notebook. But when I am assigning y axis label, its not showing in the graph and also it's plotting two graphs. The code which I am using is :
trans_count_month = df.groupby('month_').TR_AMOUNT.count()
plt.xlabel('Months') #X-axis label
plt.ylabel('Total Transactions Count') #Y-axis label
plt.title("Month wise Total Transaction Count") #Chart title.
width = 9
height = 5
plt.figure(figsize=(width, height))
trans_count_month.plot(kind='bar')
plt.figure(figsize=(width, height))
and the output which I am getting is:

How I can show only one graph with y axis label also and if there is any other way to draw this graph please share the solution.

plt.figure(figsize=width, height)).plt.xlabel/ylable/titleshould come after the.plot. Furthermore, use thefigsizekeyword argument ofplotinstead ofplt.figure(figsize=()).