is there a pythonic way to do a contingency table in pandas?,print(df1['A'].unstack())