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

Function split_rows

python/pyarrow/tests/test_csv.py:56–59  ·  view source on GitHub ↗
(arr, num_cols, num_rows)

Source from the content-addressed store, hash-verified

54
55
56def split_rows(arr, num_cols, num_rows):
57 # Split a num_cols x num_rows array into rows
58 for i in range(0, num_rows * num_cols, num_cols):
59 yield arr[i:i + num_cols]
60
61
62def split_columns(arr, num_cols, num_rows):

Callers 2

make_random_csvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected