[ https://issues.apache.org/jira/browse/SPARK-11671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Or resolved SPARK-11671. ------------------------------- Resolution: Fixed Fix Version/s: 1.7.0 Target Version/s: 1.7.0 > 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: Documentation, PySpark > Affects Versions: 1.5.1 > Reporter: chris snow > Priority: Minor > Fix For: 1.7.0 > > > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org