The Pandas std() is defined as a function for calculating the standard deviation of the given set of numbers, DataFrame, column, and rows. In respect to calculate the standard deviation, we need to import the package named "statistics" for the calculation of median.
The standard deviation is normalized by N-1 by default and can be changed using the ddof argument.
It returns Series or DataFrame if the level is specified.
sub1_Marks 6.849574 sub2_Marks 4.924429 dtype: float64