[MINOR][PYTHON] Fix typo in a docsting of RDD.toDF
### What changes were proposed in this pull request? Fixes typo in docsting of `toDF` ### Why are the changes needed? The third argument of `toDF` is actually `sampleRatio`. related discussion: https://github.com/apache/spark/pull/12746#discussion-diff-62704834 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? This patch doesn't affect any logic, so existing tests should cover it. Closes #29551 from unirt/minor_fix_docs. Authored-by: unirt <lunirtc@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This commit is contained in:
parent
a8b568800e
commit
d3304268d3
|
@ -43,7 +43,7 @@ def _monkey_patch_RDD(sparkSession):
|
|||
This is a shorthand for ``spark.createDataFrame(rdd, schema, sampleRatio)``
|
||||
|
||||
:param schema: a :class:`pyspark.sql.types.StructType` or list of names of columns
|
||||
:param samplingRatio: the sample ratio of rows used for inferring
|
||||
:param sampleRatio: the sample ratio of rows used for inferring
|
||||
:return: a DataFrame
|
||||
|
||||
>>> rdd.toDF().collect()
|
||||
|
|
Loading…
Reference in a new issue