Doubt about the div() in crosstab

I cannot understand how the div( ) is working here. Does it divides the column(because axis=0) by column sum?

Gender.div(Gender.sum(1).astype(float), axis=0).plot(kind="bar", stacked=True, figsize=(4,4))
© Copyright 2013-2019 Analytics Vidhya