Skip to content

Commit

Permalink
doc: fix typo return vs yield node generator (#3023)
Browse files Browse the repository at this point in the history
Co-authored-by: Jo Stichbury <[email protected]>
Co-authored-by: Ahdra Merali <[email protected]>
Co-authored-by: Merel Theisen <[email protected]>
  • Loading branch information
4 people authored Sep 19, 2023
1 parent 7092758 commit df4a222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/nodes_and_pipelines/nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ With `pandas` built-in support, you can use the `chunksize` argument to read dat

### Saving data with Generators
To use generators to save data lazily, you need do three things:
- Update the `make_prediction` function definition to use `return` instead of `yield`.
- Update the `make_prediction` function definition to use `yield` instead of `return`.
- Create a [custom dataset](../data/how_to_create_a_custom_dataset.md) called `ChunkWiseCSVDataset`
- Update `catalog.yml` to use a newly created `ChunkWiseCSVDataset`.

Expand Down

0 comments on commit df4a222

Please sign in to comment.