We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataFrame#to_matrix
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
The text was updated successfully, but these errors were encountered:
I can put in a PR if you want? Just wanted get feedback and see if I am missing something first.
Sorry, something went wrong.
No branches or pull requests
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:
Suggestion(untested):
The text was updated successfully, but these errors were encountered: