a b c d e
1 0 NA NA NA NA
2 0 2 2 2 2
3 0 NA NA NA NA
4 0 NA NA 1 2
5 0 NA NA NA NA
6 0 1 2 3 2
I want to remove rows 1, 3, 4, 5 to get:
a b c d e
2 0 2 2 2 2
6 0 1 2 3 2
h2o_frame$newcol[is.na(h2o_frame$newcol)] <- 0
That, however, gives me:
Error in `[<-`(`*tmp*`, is.na(transactions$country_code), value = 0) :
`i` must be missing or a numeric vector
I found out that there is a function called h2o.sub(pattern, replacement, x). However, calling it gives me:
h2o.sub(NA, 0, transactions$country_code)
ERROR: Unexpected HTTP Status code: 412 Precondition Failed
Any idea how to do this?
I also reinstalled H2O just to verify that it is not my installation, still no luck :-( Does the code above work for you?
I tried na_omit() from Python today and what I believe is the latest code level (3.8.2.3) on both the client and server and it failed with this message: Name lookup of 'na.omit' failed. Most everything else seems to work OK. I'm fairly new to H2O so maybe I'm missing something - but any suggestions on what might be wrong?
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.