centile d'un score python

>>> from scipy import stats
>>> stats.percentileofscore([1, 2, 3, 4], 3)
75.0
Roland Kovács