[ https://issues.apache.org/jira/browse/SPARK-17496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15481270#comment-15481270 ]
Sean Owen commented on SPARK-17496: ----------------------------------- I don't think that's a bug. The value is virtually always in (0,1), so being able to specify 0 or 1 even is not typically useful. > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org