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

Method setup

asv_bench/benchmarks/frame_methods.py:315–325  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313
314class ToRecords:
315 def setup(self):
316 N = 100_000
317 data = np.random.randn(N, 2)
318 mi = MultiIndex.from_arrays(
319 [
320 np.arange(N),
321 date_range("1970-01-01", periods=N, freq="ms"),
322 ]
323 )
324 self.df = DataFrame(data)
325 self.df_mi = DataFrame(data, index=mi)
326
327 def time_to_records(self):
328 self.df.to_records(index=True)

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
DataFrameClass · 0.90
from_arraysMethod · 0.45

Tested by

no test coverage detected