np.percentile function do code example
Example: np.percentile
dataset = np.array([49, 84, 57, 79, 90, 43, 87])
np.percentile(dataset, 25, axis=1) # default is axis=1
np.percentile(dataset, 50)
np.percentile(dataset, 75)
dataset = np.array([49, 84, 57, 79, 90, 43, 87])
np.percentile(dataset, 25, axis=1) # default is axis=1
np.percentile(dataset, 50)
np.percentile(dataset, 75)