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)