-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
Hey ya'll. Trying to create a matrix of all my data including categorical. Why does Daru::DataFrame#to_matrix only include numerical data?
could we potentially create an opt out for this functionality?
Current:
def to_matrix
Matrix.columns each_vector.select(&:numeric?).map(&:to_a)
end
Suggestion(untested):
def to_matrix(only_numeric: true)
if only_numeric
Matrix.columns each_vector.select(&:numeric?).map(&:to_a)
else
Matrix.columns each_vector.map(&:to_a)
end
Metadata
Metadata
Assignees
Labels
No labels