MCPcopy Create free account
hub / github.com/feast-dev/feast / chunk_helper

Function chunk_helper

sdk/python/feast/infra/utils/snowflake/snowflake_utils.py:505–508  ·  view source on GitHub ↗

Helper generator to chunk a sequence efficiently with current index like if enumerate was called on sequence.

(lst: pd.DataFrame, n: int)

Source from the content-addressed store, hash-verified

503
504
505def chunk_helper(lst: pd.DataFrame, n: int) -> Iterator[Tuple[int, pd.DataFrame]]:
506 """Helper generator to chunk a sequence efficiently with current index like if enumerate was called on sequence."""
507 for i in range(0, len(lst), n):
508 yield int(i / n), lst[i : i + n]
509
510
511def parse_private_key_path(

Callers 2

upload_dfFunction · 0.85
write_pandas_binaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected