spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph K. Bradley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-6121) Python DataFrame type inference for LabeledPoint gets wrong type
Date Mon, 02 Mar 2015 22:42:04 GMT

     [ https://issues.apache.org/jira/browse/SPARK-6121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joseph K. Bradley updated SPARK-6121:
-------------------------------------
    Assignee: Xiangrui Meng

> Python DataFrame type inference for LabeledPoint gets wrong type
> ----------------------------------------------------------------
>
>                 Key: SPARK-6121
>                 URL: https://issues.apache.org/jira/browse/SPARK-6121
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib, PySpark, SQL
>    Affects Versions: 1.3.0
>            Reporter: Joseph K. Bradley
>            Assignee: Xiangrui Meng
>            Priority: Minor
>
> In Pyspark, when an RDD of LabeledPoints is converted to a DataFrame using toDF(), the
returned DataFrame has type "null" instead of VectorUDT.
> To reproduce:
> {code}
> from pyspark.mllib.util import MLUtils
> rdd = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt")
> df = rdd.toDF()
> {code}
> Examine rdd and df to see:
> {code}
> >>> df
> DataFrame[features: null, label: double]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message