MCPcopy Create free account
hub / github.com/apache/arrow / setup

Method setup

python/benchmarks/convert_pandas.py:26–32  ·  view source on GitHub ↗
(self, n, dtype)

Source from the content-addressed store, hash-verified

24
25class PandasConversionsBase(object):
26 def setup(self, n, dtype):
27 if dtype == 'float64_nans':
28 arr = np.arange(n).astype('float64')
29 arr[arr % 10 == 0] = np.nan
30 else:
31 arr = np.arange(n).astype(dtype)
32 self.data = pd.DataFrame({'column': arr})
33
34
35class PandasConversionsToArrow(PandasConversionsBase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected