

def sample(self, values, k):
    values.sampler = np.random.permutation(len(values))
    return values.take(self.sampler[:k])

dataset/ETHPy150Open pydata/pandas/asv_bench/benchmarks/join_merge.py series_align_int64_index.sample/VarMisuse@14/15 `self`->`values`