title: When to use np.quantile and np.percentile?
body: <p>I am trying to distinguish the scenario in which <code>np.quantile()</code> or <code>np.percentile()</code> should be used.</p>
  
  <pre><code>&gt;&gt;&gt; import numpy as np
  &gt;&gt;&gt; a = np.array([[10, 7, 4], [3, 2, 1]])
  &gt;&gt;&gt; np.quantile(a, 0.5)
  3.5
  &gt;&gt;&gt; np.percentile(a, 50)
  3.5
  </code></pre>
  
  <p>Both of them give the same result and call <code>_quantile_unchecked()</code> in their implementation.</p>
  
  <p>What are the best use cases?</p>