table = df[['Qu1', 'Qu2', 'Qu3']].apply(lambda x: x.value_counts())
table
table = table.fillna(0)
How to convert pandas dataframe so that index is the unique set of values and data is the count of each value?