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

Method setup

asv_bench/benchmarks/plotting.py:76–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74
75class TimeseriesPlotting:
76 def setup(self):
77 N = 2000
78 M = 5
79 idx = date_range("1/1/1975", periods=N)
80 self.df = DataFrame(np.random.randn(N, M), index=idx)
81
82 idx_irregular = DatetimeIndex(
83 np.concatenate((idx.values[0:10], idx.values[12:]))
84 )
85 self.df2 = DataFrame(
86 np.random.randn(len(idx_irregular), M), index=idx_irregular
87 )
88
89 def time_plot_regular(self):
90 self.df.plot()

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
DataFrameClass · 0.90
DatetimeIndexClass · 0.90

Tested by

no test coverage detected