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.__getitem__ does not accept callable key #1083

Closed
devin-petersohn opened this issue Feb 18, 2020 · 0 comments · Fixed by #1084
Closed

Series.__getitem__ does not accept callable key #1083

devin-petersohn opened this issue Feb 18, 2020 · 0 comments · Fixed by #1084
Labels
pandas concordance 🐼 Functionality that does not match pandas
Milestone

Comments

@devin-petersohn
Copy link
Collaborator

Describe the problem

Indexing with a Series in pandas allows a function/callable as a key, provided it returns a collection.

Source code / logs

import modin.pandas as pd
s = pd.Series([1,2,3,4])
s[lambda x: x.index%2==0]
@devin-petersohn devin-petersohn added the pandas concordance 🐼 Functionality that does not match pandas label Feb 18, 2020
@devin-petersohn devin-petersohn added this to the 0.7.1 milestone Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pandas concordance 🐼 Functionality that does not match pandas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant