h2oai / h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
http://h2o.ai
Apache License 2.0
6.92k stars 2k forks source link

Documentation: Add string substitution to user guide #11619

Open exalate-issue-sync[bot] opened 1 year ago

exalate-issue-sync[bot] commented 1 year ago

We don't have any examples in the [Replacing Values section|http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-munging/replacing-values.html] of the User Guide of how to replace a string in R or Python using h2o.sub() and the Python equivalent.

Two options:

voting.url <- "http://archive.ics.uci.edu/ml/machine-learning-databases/voting-records/house-votes-84.data" feature.cols <- paste0("vote", 1:16) voting.data.raw <- h2o.importFile(path = voting.url, col.names = c("party", feature.cols), col.types = rep("string", 17))

newdf <- h2o.sub("\\?", "n", x = voting.data.raw) {code}

hasithjp commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-4740 Assignee: Erin LeDell Reporter: Erin LeDell State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A