Skip to content

Commit

Permalink
Add Tables.columns
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed Sep 1, 2024
1 parent 5fd85a3 commit 2cc227a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity_embedding_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cc227a

Please sign in to comment.