The 25% and 50% are quantiles so you can simply use the pandas quantile
function to get those values.
For all the information you see in describe
output, you have functions in pandas.DataFrame
that you can work with, e.g.:
count -> pandas.DataFrame.count
mean -> pandas.DataFrame.mean
std -> pandas.DataFrame.std
min -> pandas.DataFrame.min
25%, 50%, 75% or any other quantile -> pandas.DataFrame.quantile
max -> pandas.DataFrame.max
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…