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

Function make_column

python/benchmarks/streaming.py:30–32  ·  view source on GitHub ↗
(col, chunk)

Source from the content-addressed store, hash-verified

28 assert rowsize % dtype.itemsize == 0
29
30 def make_column(col, chunk):
31 return np.frombuffer(common.get_random_bytes(
32 rowsize, seed=col + 997 * chunk)).view(dtype)
33
34 return [pd.DataFrame({
35 'c' + str(col): make_column(col, chunk)

Callers 1

generate_chunksFunction · 0.85

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected