zcollection.view.View.load#
- View.load(*, delayed=True, filters=None, indexer=None, selected_variables=None)[source]#
Load the view.
- Parameters:
delayed (bool) – Whether to load data in a dask array or not.
filters (str | Callable[[Dict[str, int]], bool] | None) – The predicate used to filter the partitions to select. To get more information on the predicate, see the documentation of the
Collection.partitions
method.indexer (Iterable[Tuple[Tuple[Tuple[str, int], ...], slice]] | None) – The indexer to apply.
selected_variables (Iterable[str] | None) – A list of variables to retain from the view. If None, all variables are loaded.
- Returns:
The dataset.
- Return type:
Dataset | None
Example
>>> view.load() >>> view.load(filters="time == '2020-01-01'") >>> view.load(filters=lambda x: x["time"] == "2020-01-01")