Python Practice › Pandas Programs › Program 21

Maximum of a Series

EasyPandas Programs · 21 of 95

Write a pandas program to find the maximum value.

Advertisement
Input
[54, 38, 67, 87]
Output
87

Approach

  1. max().

Solution

Python
import pandas as pdprint(pd.Series([54, 38, 67, 87]).max())
Output
87
Advertisement

Learn the concept

New to this topic? Read the lesson, then come back.

More pandas programs

← All 95 Pandas Programs