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

Pairwise operations #680

Closed
2 tasks done
ghost opened this issue Aug 3, 2023 · 2 comments
Closed
2 tasks done

Pairwise operations #680

ghost opened this issue Aug 3, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 3, 2023

The idea is to provide an abstraction that allows series operations that operate between two series to be applied pairwise across an entire data frame, ignoring the columns that have unsupported types for the given operation.

DF.pairwise(df, :correlation) should be similar to https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.corr.html

UPDATE

We decided to go with the same naming from the Series for the operations in the DataFrame.
So we now have a function called correlation/2. The idea is to add more pairwise operations.

@josevalim
Copy link
Member

For completeness, how does that work in dplyr? Perhaps they would use across? That’s something easy to do with our query today.

@jcmkk3
Copy link

jcmkk3 commented Oct 16, 2023

For completeness, how does that work in dplyr? Perhaps they would use across? That’s something easy to do with our query today.

In the tidyverse ecosystem, I think that the idiomatic way would be to use the widyr package.

@ghost ghost closed this as completed Dec 9, 2023
This issue was closed.
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

No branches or pull requests

2 participants