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

Method setup

asv_bench/benchmarks/io/csv.py:326–332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

324
325class ReadUint64Integers(StringIORewind):
326 def setup(self):
327 self.na_values = [2**63 + 500]
328 arr = np.arange(10000).astype("uint64") + 2**63
329 self.data1 = StringIO("\n".join(arr.astype(str).tolist()))
330 arr = arr.astype(object)
331 arr[500] = -1
332 self.data2 = StringIO("\n".join(arr.astype(str).tolist()))
333
334 def time_read_uint64(self):
335 read_csv(self.data(self.data1), header=None, names=["foo"])

Callers

nothing calls this directly

Calls 3

astypeMethod · 0.45
joinMethod · 0.45
tolistMethod · 0.45

Tested by

no test coverage detected