<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def percentile(self, percentile):
 """Return bin center nearest to percentile"""

        return self.bin_centers[np.argmin(np.abs(self.cumulative_density * 100 - percentile))]