xpark.dataset.from_blocks#
- xpark.dataset.from_blocks(blocks: List[pyarrow.Table | pandas.DataFrame])[source]#
Create a
Datasetfrom a list of blocks.This method is primarily used for testing. Unlike other methods like
from_pandas()andfrom_arrow(), this method gaurentees that it won’t modify the number of blocks.- Parameters:
blocks – List of blocks to create the dataset from.
- Returns:
A
Datasetholding the blocks.
DeveloperAPI: This API may change across minor Xpark releases.