From c702234d623563c61919d1aa5ff9143ce625d1ce Mon Sep 17 00:00:00 2001 From: Michael Simpson Date: Thu, 12 Sep 2019 09:35:22 -0400 Subject: [PATCH] Fix the example in README When I was running through the example, I noticed that `result_set` does not include the header. I updated the example code so that it wouldn't skip the first entry, since that might create bugs for new users following the example. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b0fe858..2ad0f76 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ result = redis_graph.query(query) # Print resultset result.pretty_print() -# Iterate through resultset, skip header row at position 0 -for record in result.result_set[1:]: +# Iterate through resultset +for record in result.result_set: person_name = record[0] person_age = record[1] visit_purpose = record[2]