Reshape DataFrame categorical values to rows,"pd.melt(df).groupby(['variable', 'value'])['value'].count().unstack().T"