diff --git a/src/entity_embedding_utils.jl b/src/entity_embedding_utils.jl index 4a68a3a..f798ea5 100644 --- a/src/entity_embedding_utils.jl +++ b/src/entity_embedding_utils.jl @@ -50,7 +50,7 @@ Returns the indices of the categorical columns in the table `X`. function get_cat_inds(X) # if input is a matrix; conclude no categorical columns Tables.istable(X) || return Int[] - types = [scitype(Tables.getcolumn(X, name)[1]) for name in Tables.schema(X).names] + types = [scitype(Tables.getcolumn(X, name)[1]) for name in Tables.schema(Tables.columns(X)).names] cat_inds = findall(x -> x <: Finite, types) return cat_inds end