Skip to content

map_blocks builtin

map_blocks(path, out, func, *, rows=1000000, keep=True)

Streams the block model file path to out in chunks of rows blocks: func(chunk) returns a dict of new columns, written with the chunk's layout and, when keep, its columns. Memory stays bounded by rows.

used in