You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On original frames the unique values in a categorical column may be the same as the levels in a column. However if I was to subset iris dataset to only have setosa and versicolor, unique will still return the original domain. h2o.unique and h2o.levels have the same functionality.
On original frames the unique values in a categorical column may be the same as the levels in a column. However if I was to subset iris dataset to only have setosa and versicolor, unique will still return the original domain. h2o.unique and h2o.levels have the same functionality.
{code:r}
library(h2o)
h2o.init(nthreads = -1)
iris.hex = as.h2o(iris)
h2o.unique(iris.hex$Species)
C1
1 setosa
2 versicolor
3 virginica
Subset iris dataset
iris_subset = iris.hex[1:100,]
Run table to track
h2o.table(iris_subset$Species)
Species Count
1 setosa 50
2 versicolor 50
However h2o.unique still returns virginica
h2o.unique(iris_subset$Species)
C1
1 setosa
2 versicolor
3 virginica
{code}
The text was updated successfully, but these errors were encountered: