We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. I'd like to be able to call ~series on Boolean series, like in pandas.
~series
Describe the solution you'd like
import cudf import pandas as pd s = cudf.Series([True, False, False]) ps = s.to_pandas() print(ps) print(~ps) print(~s) 0 True 1 False 2 False dtype: bool 0 False 1 True 2 True dtype: bool --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-292-c58f31f5ac53> in <module> 7 print(ps) 8 print(~ps) ----> 9 print(~s) /conda/envs/cudf/lib/python3.7/site-packages/cudf-0.7.0.dev0+565.gf6ad6de.dirty-py3.7-linux-x86_64.egg/cudf/dataframe/series.py in __invert__(self) 573 else: 574 raise TypeError( --> 575 f"Operation `~` not supported on {self.dtype.type.__name__}" 576 ) 577 TypeError: Operation `~` not supported on bool_
The text was updated successfully, but these errors were encountered:
Should be supported on C++ side if not now then after #1142.
Sorry, something went wrong.
Resolved. Closing.
No branches or pull requests
Is your feature request related to a problem? Please describe.
I'd like to be able to call
~series
on Boolean series, like in pandas.Describe the solution you'd like
The text was updated successfully, but these errors were encountered: