Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/14118
  
    I support this PR. But just to make sure, I'd like to bring a reference.
    
    It seems at least `na.strings` option in `read.csv` in R does as proposed 
here,
    
    ```r
    bt <- "A,B,C,D
    10,20,NaN
    30,,40
    40,30,20
    ,NA,20"
    
    b<- read.csv(text=bt,check.names = FALSE, na.strings=c("NA","NaN", " "))
    b
    ```
    
    prints
    
    ```
       A  B  C  D                                                               
                                       
    1 10 20 NA NA                                                               
                                       
    2 30 NA 40 NA                                                               
                                       
    3 40 30 20 NA                                                               
                                       
    4 NA NA 20 NA    
    ```
    



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to