Skip to content

Commit b19400d

Browse files
committed
Update README.rst
pyspark.rdd method to return number of partitions is rdd.getNumPartitions and not rdd.numPartitions
1 parent 5266c54 commit b19400d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Sparkit-learn introduces two important distributed data format:
7171
# array([ 0, 1, 2, ... 17, 18, 19])
7272
7373
# pyspark.rdd operations will still work
74-
X.numPartitions() # 2 - number of partitions
74+
X.getNumPartitions() # 2 - number of partitions
7575
7676
- **DictRDD:**
7777

0 commit comments

Comments
 (0)