[
https://issues.apache.org/jira/browse/SPARK-17496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-17496.
-------------------------------
Resolution: Not A Problem
> missing int to float coercion in df.sample() signature
> ------------------------------------------------------
>
> Key: SPARK-17496
> URL: https://issues.apache.org/jira/browse/SPARK-17496
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 2.0.0
> Reporter: Max Moroz
> Priority: Trivial
>
> {code}
> # works
> spark.createDataFrame([[1], [2], [3]]).sample(True, 1.0)
> # doesn't work
> spark.createDataFrame([[1], [2], [3]]).sample(True, 1)
> {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]