Skip to content

Commit

Permalink
[SPARK-11671] documentation code example typo
Browse files Browse the repository at this point in the history
Example for sqlContext.createDataDrame from pandas.DataFrame has a typo

Author: Chris Snow <chsnow123@gmail.com>

Closes #9639 from snowch/patch-2.
  • Loading branch information
snowch authored and Andrew Or committed Nov 12, 2015
1 parent f0d3b58 commit 380dfcc
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 380dfcc

Please sign in to comment.