def transform(self, values):
assert self.cdf is not None<EOL>assert self.bin_edges is not None<EOL>indices = numpy.searchsorted(self.bin_edges, values)<EOL>result = self.cdf[indices]<EOL>assert len(result) == len(values)<EOL>return numpy.minimum(result, <NUM_LIT>)<EOL>
Return percent ranks (range [0, 100]) for the given values.