Method for Setting Categorical Levels

Description

I need a method to set/change the categorical levels of a H2OFrame column. For example, I would like to do something similar to levels <- value that R has; value will be a vector of Strings (or possibly a H2OFrame object if there are a lot of levels).

levels(prostate.hex$CAPSULE)
> "0" "1"
levels(prostate.hex$CAPSULE) <- c("absent", "present")
levels(prostate.hex$CAPSULE)
> "absent" "present"

So the level "0" gets mapped to "absent", and the level "1" gets mapped to "present".

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Spencer Aiello

Reporter

Former user

CustomerVisible

No