def two_way_factor_plot(dataFrame, x, y, col, row): sns.factorplot(x=x, y=y, col=col, row=row, data=dataFrame, kind='bar', margin_titles=True, size=3, aspect=.8, palette="Set3")