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

Method setup

asv_bench/benchmarks/reshape.py:21–26  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

19 param_names = ["dtype"]
20
21 def setup(self, dtype):
22 self.df = DataFrame(
23 np.random.randn(100_000, 3), columns=["A", "B", "C"], dtype=dtype
24 )
25 self.df["id1"] = pd.Series(np.random.randint(0, 10, 10000))
26 self.df["id2"] = pd.Series(np.random.randint(100, 1000, 10000))
27
28 def time_melt_dataframe(self, dtype):
29 melt(self.df, id_vars=["id1", "id2"])

Callers

nothing calls this directly

Calls 1

DataFrameClass · 0.90

Tested by

no test coverage detected