Given a dataframe with different categorical variables, how do I return a cross-tabulation with percentages instead of frequencies?
df = pd.DataFrame({\'A\' : [\
Normalizing the index will simply work out. Use parameter, normalize = "index" in pd.crosstab().
normalize = "index"
pd.crosstab()