Home > Software engineering >  Dataframe standard deviation
Dataframe standard deviation

Time:07-04

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)

CodePudding user response:

You can do it this way:

df.stack().std() 
  • Related