Calculate the minimum value from a series using Pandas

In this python pandas program, we will calculate the minimum value from a series using pandas.

Steps to solve the program
  1. Import pandas library as pd.
  2. Create a series using pd.Series().
  3. Find the minimum value of the series using df.min().
  4. Print the output.
				
					import pandas as pd
df = pd.Series([54,38,67,87])
print(df)
print("Minumum value: ",df.min())
				
			

Output :

				
					0    54
1    38
2    67
3    87
dtype: int64
Minumum value:  38
				
			

calculate the maximum value from a series

calculate the frequency of each value of a series

Leave a Comment