[jira] [Commented] (SPARK-14932) Allow DataFrame.replace() to replace values with None

2016-12-08 Thread Jiayue Zhang (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-14932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15732794#comment-15732794
 ] 

Jiayue Zhang commented on SPARK-14932:
--

I can work on this. Thanks.

> Allow DataFrame.replace() to replace values with None
> -
>
> Key: SPARK-14932
> URL: https://issues.apache.org/jira/browse/SPARK-14932
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Reporter: Nicholas Chammas
>Priority: Minor
>  Labels: starter
>
> Current doc: 
> http://spark.apache.org/docs/1.6.1/api/python/pyspark.sql.html#pyspark.sql.DataFrame.replace
> I would like to specify {{None}} as the value to substitute in. This is 
> currently 
> [disallowed|https://github.com/apache/spark/blob/9797cc20c0b8fb34659df11af8eccb9ed293c52c/python/pyspark/sql/dataframe.py#L1144-L1145].
>  My use case is for replacing bad values with {{None}} so I can then ignore 
> them with {{dropna()}}.
> For example, I have a dataset that incorrectly includes empty strings where 
> there should be {{None}} values. I would like to replace the empty strings 
> with {{None}} and then drop all null data with {{dropna()}}.



--
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



[jira] [Commented] (SPARK-18286) Add Scala/Java/Python examples for MinHash and RandomProjection

2016-11-05 Thread Jiayue Zhang (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-18286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15641238#comment-15641238
 ] 

Jiayue Zhang commented on SPARK-18286:
--

Really sorry that I forgot to check here first

> Add Scala/Java/Python examples for MinHash and RandomProjection
> ---
>
> Key: SPARK-18286
> URL: https://issues.apache.org/jira/browse/SPARK-18286
> Project: Spark
>  Issue Type: Improvement
>  Components: Examples, ML
>Reporter: Yanbo Liang
>Priority: Minor
>
> Add Scala/Java/Python examples for MinHash and RandomProjection



--
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



[jira] [Commented] (SPARK-8780) Move Python doctest code example from models to algorithms

2016-10-09 Thread Jiayue Zhang (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-8780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15559886#comment-15559886
 ] 

Jiayue Zhang commented on SPARK-8780:
-

I will work on this, thanks.

> Move Python doctest code example from models to algorithms
> --
>
> Key: SPARK-8780
> URL: https://issues.apache.org/jira/browse/SPARK-8780
> Project: Spark
>  Issue Type: Improvement
>  Components: MLlib, PySpark
>Affects Versions: 1.5.0
>Reporter: Yanbo Liang
>Priority: Minor
>  Labels: starter
>
> Almost all doctest code examples are in the models at Pyspark mllib.
> Since users usually start with algorithms rather than models, we need to move 
> them from models to algorithms.



--
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