From 3e20876500be8d1b374d13dd15b3da6fcc7fd950 Mon Sep 17 00:00:00 2001 From: Stefan Garlonta Date: Tue, 25 Jul 2023 17:37:25 +0200 Subject: [PATCH] :memo: Fix code sample --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d8fc54b..b1b9f5f 100644 --- a/README.md +++ b/README.md @@ -226,9 +226,10 @@ Now you can use the loader directly when creating your Stream: ```python Stream.of(csv("data.csv", delimiter=";")) \ - .map(lambda x: x["name"]) \ + .map(lambda x: x.attr1) \ .for_each(print) ``` +You can access the attributes of the CSV rows directly like you would with a normal object. ## API Reference For a more detailed documentation view the docs on GitBook: [PyStreamAPI Docs](https://pystreamapi.pickwicksoft.org/)