Skip to content

Commit af0c3c6

Browse files
mjs2600swilly22
authored andcommitted
Fix the example in README (#46)
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.
1 parent 942942b commit af0c3c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ result = redis_graph.query(query)
3838
# Print resultset
3939
result.pretty_print()
4040

41-
# Iterate through resultset, skip header row at position 0
42-
for record in result.result_set[1:]:
41+
# Iterate through resultset
42+
for record in result.result_set:
4343
person_name = record[0]
4444
person_age = record[1]
4545
visit_purpose = record[2]

0 commit comments

Comments
 (0)