In this python pandas program, we will find the standard deviation of the given series using pandas library.
Steps to solve the program
- Import pandas library as pd.
- Create a series using pd.Series().
- Find the standard deviation of the given series using df.std().
- Print the output.
import pandas as pd
df = pf.Series([2,4,6,8,10])
print(df)
print("Standard deviation of the given series: ",df.std())
Output :
0 2
1 4
2 6
3 8
4 10
dtype: int64
Standard deviation of the given series: 3.1622776601683795