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

Series/DataFrame element-wise equality operations #32

Closed
andrus opened this issue Apr 19, 2019 · 0 comments
Closed

Series/DataFrame element-wise equality operations #32

andrus opened this issue Apr 19, 2019 · 0 comments
Milestone

Comments

@andrus
Copy link
Collaborator

andrus commented Apr 19, 2019

Let's define a few element-wise logical operations for DataFrames and Series, all returning a DataFrame / Series of booleans (that can be later used as value replacement conditions per #31) :

BooleanSeries mask = s1.eq(s2);
BooleanSeries mask = s1.ne(s2);

DataFrame mask = df1.eq(df2);
DataFrame mask = df1.ne(df2);

DataFrames being compared must have the same number of rows and columns and the same column labels.

@andrus andrus changed the title DataFrame element-wise comparison operations Series/DataFrame element-wise comparison operations Apr 23, 2019
@andrus andrus changed the title Series/DataFrame element-wise comparison operations Series/DataFrame element-wise equality operations Apr 23, 2019
andrus added a commit that referenced this issue Apr 23, 2019
* also implementing BooleanSeries.isTrue/isFalse
@andrus andrus added this to the 0.6 milestone Apr 23, 2019
@andrus andrus closed this as completed Apr 23, 2019
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

1 participant