zaster
zaster

Reputation: 171

Dataframe standard deviation

I need to get the standard deviation of all cells (Not columns and rows but all the cells)

My dataframe looks like this

dataframe

Expected answer as the standard deviation = 69.61 (Taken from excel)

Upvotes: 0

Views: 36

Answers (1)

gtomer
gtomer

Reputation: 6574

You can do it this way:

df.stack().std() 

Upvotes: 2

Related Questions