Skip to content

Commit 4e1ab9e

Browse files
authored
Merge pull request #184 from RedisLabs/fix-python-docs-2.4
Fix python docs (2.4)
2 parents d2a5639 + df9d45a commit 4e1ab9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/python.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ bin/pyspark --jars <path-to>/spark-redis-<version>-jar-with-dependencies.jar -
2121
```python
2222
df = spark.read.json("examples/src/main/resources/people.json")
2323
df.write.format("org.apache.spark.sql.redis").option("table", "people").option("key.column", "name").save()
24-
loadedDf = spark.read.format("org.apache.spark.sql.redis").option("table", "people").load()
24+
loadedDf = spark.read.format("org.apache.spark.sql.redis").option("table", "people").option("key.column", "name").load()
2525
loadedDf.show()
2626
```
2727

@@ -31,8 +31,6 @@ loadedDf.show()
3131
127.0.0.1:6379> hgetall people:Justin
3232
1) "age"
3333
2) "19"
34-
3) "name"
35-
4) "Justin"
3634
```
3735

3836
The self-contained application can be configured in the following manner:

0 commit comments

Comments
 (0)