Skip to content
New issue

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

Enables alternative correlation methods #767

Merged

Conversation

cristineguadelupe
Copy link
Contributor

I'm passing the correlation method as string to follow the Series.rank convention but I'd suggest to use atoms instead. WDYT?

@@ -5678,6 +5678,9 @@ defmodule Explorer.DataFrame do
* `:column_name` - the name of the column with column names. Defaults to "names".
* `:ddof` - the 'delta degrees of freedom' - the divisor used in the correlation
calculation. Defaults to 1.
* `method` refers to the correlation method. The following methods are available:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `method` refers to the correlation method. The following methods are available:
* `:method` refers to the correlation method. The following methods are available:

@josevalim
Copy link
Member

Looks great but indeed atoms will be better. I think you need to declare an enum in Rust. Ask @philss, he will know for sure!

Copy link
Member

@philss philss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@josevalim josevalim merged commit 7550921 into elixir-explorer:main Dec 13, 2023
4 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants