0 votes
in Python Pandas by
How to get the minimum, 25th percentile, median, 75th, and max of a numeric series?

1 Answer

0 votes
by

We can compute the minimum, 25th percentile, median, 75th, and maximum of p as below example:

import pandas as pd

import numpy as np

p = pd.Series(np.random.normal(14, 6, 22))

state = np.random.RandomState(120)

p = pd.Series(state.normal(14, 6, 22))

percentile(p, q=[0, 25, 50, 75, 100])

Output:

array([ 4.61498692, 12.15572753, 14.67780756, 17.58054104, 33.24975515])

Related questions

0 votes
asked Feb 26, 2023 in Informatica by rajeshsharma
0 votes
asked Aug 13, 2021 in Python Pandas by SakshiSharma
...