Created
February 21, 2017 09:55
-
-
Save shredding/b72782eccea397be0e8688245a4b546f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
s = pd.Series(range(0, 6)) | |
print( | |
# bitwise and: & | |
s[(s > 0) & (s % 2 == 0)], | |
# bitwise or: | | |
s[(s > 4) | (s < 2)] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment