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

Method setup

asv_bench/benchmarks/plotting.py:34–44  ·  view source on GitHub ↗
(self, kind)

Source from the content-addressed store, hash-verified

32 param_names = ["kind"]
33
34 def setup(self, kind):
35 if kind in ["bar", "barh", "pie"]:
36 n = 100
37 elif kind in ["kde"]:
38 n = 10000
39 else:
40 n = 1000000
41
42 self.s = Series(np.random.randn(n))
43 if kind in ["area", "pie"]:
44 self.s = self.s.abs()
45
46 def time_series_plot(self, kind):
47 self.s.plot(kind=kind)

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
absMethod · 0.80

Tested by

no test coverage detected