DataFrame.
std
Return sample standard deviation.
Axis for the function to be applied on.
Include only float, int, boolean columns. False is not supported. This parameter is mainly for pandas compatibility.
Examples
>>> df = ks.DataFrame({'a': [1, 2, 3, np.nan], 'b': [0.1, 0.2, 0.3, np.nan]}, ... columns=['a', 'b'])
On a DataFrame:
>>> df.std() a 1.0 b 0.1 dtype: float64
>>> df.std(axis=1) 0 0.636396 1 1.272792 2 1.909188 3 NaN dtype: float64
On a Series:
>>> df['a'].std() 1.0