Is there any way to collect categorical features quickly in Julia DataFrames?
I think you can use the eltypes function in DataFrames.

categorical_indices = eltypes(X_train) .== String
categorical_columns = names(X_train)[categorical_indices] 


This should provide a vector of Symbols for each of the categorical columns.