Use the std() method to return column-wise sample standard deviation value of a DataFrame.
Example
>>> df1 = df.select(['employee_no', 'first_name', 'marks', 'dob']) >>> df1.std() std_employee_no std_marks std_dob 0 6.658328 None None
Use the std() method to return column-wise sample standard deviation value of a DataFrame.
>>> df1 = df.select(['employee_no', 'first_name', 'marks', 'dob']) >>> df1.std() std_employee_no std_marks std_dob 0 6.658328 None None