I am trying to do a naive Bayes and after loading some data into a dataframe in Pandas, the describe function captures the data I want. I'd like to capture the mean and std from each column of the table but am unsure on how to do that. I've tried things like:
df.describe([mean])
df.describe(['mean'])
df.describe().mean
None are working. I was able to do something similar in R with summary but don't know how to do in Python. Can someone lend some advice?