Concept Flow - Percentiles with np.percentile()
Start with data array
Choose percentile value p
Sort data in ascending order
Calculate rank index for p
Interpolate if needed
Return value at percentile p
The process takes a data array and a percentile value, sorts the data, finds the position for that percentile, interpolates if needed, and returns the percentile value.