syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
In H2O Sparkling-Water how to add column to DataFrame?

I got this question answered at a Meetup:
//
// Transform start time to days from Epoch
//
val startTimeF = bikesDF('starttime)
// Add a new column
bikesDF.add(new TimeSplit().doIt(startTimeF))
// Do not forget to update frame in K/V store
bikesDF.update(null)
The above syntax is also on github:

https://github.com/h2oai/sparkling-water/blob/master/examples/scripts/Meetup20150226.script.scala

syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me