Backport PR #27663 on branch 0.25.x (BUG: pd.crosstab not working when margin and normalize are set together)
Backport PR #27663: BUG: pd.crosstab not working when margin and normalize are set together