Repository: spark
Updated Branches:
  refs/heads/master f0d3b58d9 -> 380dfcc0d


[SPARK-11671] documentation code example typo

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

Author: Chris Snow <chsnow...@gmail.com>

Closes #9639 from snowch/patch-2.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/380dfcc0
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/380dfcc0
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/380dfcc0

Branch: refs/heads/master
Commit: 380dfcc0dc865d361a97bb045a2ac546dacfdba9
Parents: f0d3b58
Author: Chris Snow <chsnow...@gmail.com>
Authored: Thu Nov 12 15:42:30 2015 -0800
Committer: Andrew Or <and...@databricks.com>
Committed: Thu Nov 12 15:42:30 2015 -0800

----------------------------------------------------------------------
 python/pyspark/sql/context.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/380dfcc0/python/pyspark/sql/context.py
----------------------------------------------------------------------
diff --git a/python/pyspark/sql/context.py b/python/pyspark/sql/context.py
index 924bb64..5a85ac3 100644
--- a/python/pyspark/sql/context.py
+++ b/python/pyspark/sql/context.py
@@ -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):


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to