I've come across something that while looking at how to normalize data on datacamp.com
In one of the exercises it was said that to normalize a dataframe df one should do like this
normalized_df = df / df.mean()
My question is: why does this work? Why does Pandas know here to divide columnwise?
Thanks
Edit: This post Dataframe divide series on pandas does not answer the question I am posting. I merely states what to do. I want to know why it works.