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

Method setup

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

Source from the content-addressed store, hash-verified

54 param_names = ["kind"]
55
56 def setup(self, kind):
57 if kind in ["bar", "barh", "pie"]:
58 n = 100
59 elif kind in ["kde", "scatter", "hexbin"]:
60 n = 10000
61 else:
62 n = 1000000
63
64 self.x = Series(np.random.randn(n))
65 self.y = Series(np.random.randn(n))
66 if kind in ["area", "pie"]:
67 self.x = self.x.abs()
68 self.y = self.y.abs()
69 self.df = DataFrame({"x": self.x, "y": self.y})
70
71 def time_frame_plot(self, kind):
72 self.df.plot(x="x", y="y", kind=kind)

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
DataFrameClass · 0.90
absMethod · 0.80

Tested by

no test coverage detected