chris snow created SPARK-11671:
----------------------------------
Summary: Example for sqlContext.createDataDrame from
pandas.DataFrame has a typo
Key: SPARK-11671
URL: https://issues.apache.org/jira/browse/SPARK-11671
Project: Spark
Issue Type: Bug
Components: Deploy, PySpark
Affects Versions: 1.5.1
Reporter: chris snow
Priority: Minor
PySpark documentation error:
{code}
sqlContext.createDataFrame(pandas.DataFrame([[1, 2]]).collect())
{code}
Results in:
{code}
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-14-120201b3ef75> in <module>()
----> 1 sqlContext.createDataFrame(pandas.DataFrame([[1, 2]]).collect())
/usr/local/src/bluemix_ipythonspark_141/notebook/lib/python2.7/site-packages/pandas-0.14.0-py2.7-linux-x86_64.egg/pandas/core/generic.pyc
in __getattr__(self, name)
1841 return self[name]
1842 raise AttributeError("'%s' object has no attribute '%s'" %
-> 1843 (type(self).__name__, name))
1844
1845 def __setattr__(self, name, value):
AttributeError: 'DataFrame' object has no attribute 'collect'
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]