I am building a Random Forest model, and my categorical labels are strings (e.g., "Active" and "Inactive"). How can I convert "Active" to '1' and "Inactive" to '0' for use in a classification model?
Q I am building a Random Forest model, and my categorical labels are strings (eg, "Active"