#NEWLINE# def std( self , axis ) : #NEWLINE# #INDENT# '\n        Returns the uncorrected sample standard deviation along the given axis.\n        :param axis: The axis to calculate standard deviation on.\n        :return:\n        ' #NEWLINE# if ( self not in ( 0 , 1 ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Axis must be 0 or 1.' ) #NEWLINE# #UNINDENT# other_axis = axis #NEWLINE# length = self . shape [ other_axis ] #NEWLINE# sub_mean = ( self - self . mean ( other_axis ) ) #NEWLINE# return ( sub_mean . multiply ( sub_mean ) . sum ( other_axis ) / length ) . sqrt ( )