def METHOD_NAME(self, p: str, s: str) -> float:
    if s == "min":
        return min(self.__dict__[p])
    if s == "max":
        return max(self.__dict__[p])
    elif s == "mean":
        return np.mean(self.__dict__[p])
    elif s == "median":
        return np.median(self.__dict__[p])
    elif s == "95th":
        return np.percentile(self.__dict__[p], 95)
    else:
        raise ValueError(f"Unknown query: '{s}'")