Github user dwmclary commented on the pull request:
https://github.com/apache/spark/pull/4421#issuecomment-73626542
Or, I guess I can just do it in this PR if you don't mind it changing a
bunch.
On Mon, Feb 9, 2015 at 5:18 PM, Dan McClary <[email protected]> wrote:
> Ah, yes, I see that now.
>
> Python doesn't seem to have a toDataFrame, so maybe the logical thing to
> do here is to just do a new PR with a Python implementation of toDataFrame
> -- it'd be a little bit from my current PR and then call into the Scala
> method.
>
> What do you think?
>
> On Mon, Feb 9, 2015 at 5:12 PM, Reynold Xin <[email protected]>
> wrote:
>
>> Types need to exist, but names don't. They can just be random column
>> names like _1, _2, _3.
>>
>> In Scala, if you import sqlContext.implicits._, then any RDDProduct
>>
<http://which%20includes%20RDD%20of%20case%20classes%20and%20RDD%20of%20tuples>
>> can be implicitly turned into a DataFrame.
>>
>> In Python, I think we can add an explicit method that turns a RDD of
>> tuple into a DataFrame, if that doesn't exist yet.
>>
>> â
>> Reply to this email directly or view it on GitHub
>> <https://github.com/apache/spark/pull/4421#issuecomment-73625791>.
>>
>
>
---
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]