def ranker(data):
    ranks = algos.rank(data.values, axis=axis, method=method, ascending=ascending, na_option=na_option, pct=pct)
    ranks = self._constructor(ranks, **data._construct_axes_dict())
    return ranks.__finalize__(self)
def ranker(data):
    ranks = algos.rank(data.values, axis=axis, method=method, ascending=ascending, na_option=na_option, pct=pct)
    ranks = self._constructor(ranks, **data._construct_axes_dict())
    return ranks.__finalize__(self)