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

Filtering two or more elements from a column #98

Open
thap2331 opened this issue Apr 1, 2020 · 0 comments
Open

Filtering two or more elements from a column #98

thap2331 opened this issue Apr 1, 2020 · 0 comments

Comments

@thap2331
Copy link

thap2331 commented Apr 1, 2020

Hi,
I am new to piping but I really want to start working using pipes.

I have a dataframe in which one of the column is country names. I want to mask only few countries.
I know we can do this if I want only one element. (df_world >> mask(X.Country=='Nigeria')).

But how do I select multiple countries from a column. For example, I want 'Nigeria' and 'China' only?

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