I have a dataframe
in the following format:
and I'm trying to boxplot
it using the following code:
plot = toPlot.boxplot(column=['Score'], by=['Q1','Q2'])
plt.show()
which gives me the following plot:
As we can see in the above plot, the result has (T,F), (T,T), (F,T) etc combinations already made, which I don't want for my purposes.
I'd ideally like the following:
Plot these box plots separately like the graph below (which has been taken from here) plots it. But I have multiple Q1
, Q2
....Qn
etc. So I'd like to have these individual plots in rows and columns, more like a scatterplotmatrix
or facet_grid
in R
.
Any pointers on how to achieve this?
TIA.