Github user dongjoon-hyun commented on the pull request:
https://github.com/apache/spark/pull/13245#issuecomment-220814644
Unfortunately, `Dataset` (or `Dataframe`) seems not suitable to achieve the
goal on Python.
```python
>>> spark.parallelize(range(1, 10)).toDS()
...
AttributeError: 'RDD' object has no attribute 'toDS'
>>> spark.parallelize(range(1, 10)).toDF()
...
TypeError: Can not infer schema for type: <type 'int'>
```
I'll think about this more until tomorrow and close this if I cannot find a
neat solution.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]