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

[FEA] Add cudf.Series.between operator #11042

Closed
randerzander opened this issue Jun 3, 2022 · 2 comments
Closed

[FEA] Add cudf.Series.between operator #11042

randerzander opened this issue Jun 3, 2022 · 2 comments
Assignees
Labels
feature request New feature or request Python Affects Python cuDF API.

Comments

@randerzander
Copy link
Contributor

>>> import pandas as pd
>>> import cudf
>>> 
>>> pdf = pd.DataFrame({'id': [0, 1, 2, 3]})
>>> pdf.id.between(0, 2)
0     True
1     True
2     True
3    False
Name: id, dtype: bool

>>> gdf = cudf.from_pandas(pdf)
>>> gdf.id.between(0, 2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Series' object has no attribute 'between'
@randerzander randerzander added feature request New feature or request Python Affects Python cuDF API. labels Jun 3, 2022
@beckernick
Copy link
Member

Cross-listing #10443 (can close one)

@randerzander
Copy link
Contributor Author

oops, thanks, @beckernick.

This is definitely a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Python Affects Python cuDF API.
Projects
None yet
Development

No branches or pull requests

3 participants