Skip to content

Commit

Permalink
[SPARK-11671] documentation typo
Browse files Browse the repository at this point in the history
Example for sqlContext.createDataDrame from pandas.DataFrame has a typo
  • Loading branch information
snowch committed Nov 11, 2015
1 parent 2d76e44 commit 1f4e55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def createDataFrame(self, data, schema=None, samplingRatio=None):
>>> sqlContext.createDataFrame(df.toPandas()).collect() # doctest: +SKIP
[Row(name=u'Alice', age=1)]
>>> sqlContext.createDataFrame(pandas.DataFrame([[1, 2]]).collect()) # doctest: +SKIP
>>> sqlContext.createDataFrame(pandas.DataFrame([[1, 2]])).collect() # doctest: +SKIP
[Row(0=1, 1=2)]
"""
if isinstance(data, DataFrame):
Expand Down

0 comments on commit 1f4e55c

Please sign in to comment.