Skip to content

Commit bfef3c7

Browse files
committed
fix python docs
1 parent 8720b69 commit bfef3c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/python.md

+1-3
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)