Skip to content
Snippets Groups Projects
Commit 380dfcc0 authored by Chris Snow's avatar Chris Snow Committed by Andrew Or
Browse files

[SPARK-11671] documentation code example typo

Example for sqlContext.createDataDrame from pandas.DataFrame has a typo

Author: Chris Snow <chsnow123@gmail.com>

Closes #9639 from snowch/patch-2.
parent f0d3b58d
No related branches found
No related tags found
No related merge requests found
......@@ -415,7 +415,7 @@ class SQLContext(object):
>>> 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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment