I am trying to put 2 matplotlib figures side by side but each resulted from a groupby function (see code below, only show the second plot). I am aware that similar questions have been asked before but none are exactly like this one. I appreciate any help.
ax = df_train.groupby(['Role','Side'])['Result'].mean().plot(kind='bar', figsize=(5,6), fontsize=13)
ax.set_ylabel('Win Rate')
ax.set_title('Win Rate by Role and Side')
ax1 = df_train.groupby(['Role','Side'])['Result'].count().plot(kind='bar', figsize=(5,6), fontsize=13)
ax1.set_ylabel('# of games')
ax1.set_title('# of games by Role and Side')
plt.show()