Something like this:
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
batData = ['a','b','c','a','c']
bowlData = ['b','a','d','d','a']
df=pd.DataFrame()
df['batting']=batData
df['bowling']=bowlData
fig, ax =plt.subplots(1,2)
sns.countplot(df['batting'], ax=ax[0])
sns.countplot(df['bowling'], ax=ax[1])
fig.show()
The idea is to specify the subplots in the figure - there are numerous ways to do this but the above will work fine.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…