MCPcopy
hub / github.com/pandas-dev/pandas / time_sample_weights

Method time_sample_weights

asv_bench/benchmarks/groupby.py:1124–1125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1122 self.df.groupby(self.groups).sample(n=1)
1123
1124 def time_sample_weights(self):
1125 self.df.groupby(self.groups).sample(n=1, weights=self.weights)
1126
1127
1128class Resample:

Callers

nothing calls this directly

Calls 2

sampleMethod · 0.45
groupbyMethod · 0.45

Tested by

no test coverage detected