mindspore.dataset.Dataset.zip
- Dataset.zip(datasets)[source]
Zip the datasets in the sense of input tuple of datasets. Columns in the input datasets must have different name.
- Parameters
datasets (Union[Dataset, tuple[Dataset]]) – A tuple of datasets or a single class Dataset to be zipped together with this dataset.
- Returns
Dataset, dataset zipped.
- Raises
TypeError – The parameter is not dataset object or tuple of dataset objects.
Examples
>>> # Create a dataset which is the combination of dataset and dataset_1 >>> dataset = dataset.zip(dataset_1)