diff options
author | Chris Snow <chsnow123@gmail.com> | 2015-11-12 15:42:30 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-11-12 15:42:30 -0800 |
commit | 380dfcc0dc865d361a97bb045a2ac546dacfdba9 (patch) | |
tree | 1b9ac84522e3b23a2af7d0a1f38c9bcbeb7d4acd /python/pyspark/sql/context.py | |
parent | f0d3b58d91f43697397cdd7a7e7f38cbb7daaa31 (diff) | |
download | spark-380dfcc0dc865d361a97bb045a2ac546dacfdba9.tar.gz spark-380dfcc0dc865d361a97bb045a2ac546dacfdba9.tar.bz2 spark-380dfcc0dc865d361a97bb045a2ac546dacfdba9.zip |
[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.
Diffstat (limited to 'python/pyspark/sql/context.py')
-rw-r--r-- | python/pyspark/sql/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/sql/context.py b/python/pyspark/sql/context.py index 924bb6433d..5a85ac3102 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): |