提交 60d33d74 编写于 作者: Y Your Name

add two pictures and update two markdown

上级 f45500e1
...@@ -229,6 +229,9 @@ The code output is as follows. Data values in each row of the dataset `ds2` is m ...@@ -229,6 +229,9 @@ The code output is as follows. Data values in each row of the dataset `ds2` is m
``` ```
### zip ### zip
MindSpore provides the `zip` function to combine multiple datasets into one dataset. MindSpore provides the `zip` function to combine multiple datasets into one dataset.
![avatar](../images/zip.png)
> If the column names in the two datasets are the same, the two datasets are not combined. Therefore, pay attention to column names. > If the column names in the two datasets are the same, the two datasets are not combined. Therefore, pay attention to column names.
> If the number of rows in the two datasets is different, the number of rows after combination is the same as the smaller number. > If the number of rows in the two datasets is different, the number of rows after combination is the same as the smaller number.
```python ```python
......
...@@ -228,6 +228,9 @@ for data in ds2.create_dict_iterator(): ...@@ -228,6 +228,9 @@ for data in ds2.create_dict_iterator():
``` ```
### zip ### zip
MindSpore提供`zip`函数,可将多个数据集合并成1个数据集。 MindSpore提供`zip`函数,可将多个数据集合并成1个数据集。
![avatar](../images/zip.png)
> 如果两个数据集的列名相同,则不会合并,请注意列的命名。 > 如果两个数据集的列名相同,则不会合并,请注意列的命名。
> 如果两个数据集的行数不同,合并后的行数将和较小行数保持一致。 > 如果两个数据集的行数不同,合并后的行数将和较小行数保持一致。
```python ```python
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册