-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
StringArray comparisions return BooleanArray #30231
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
Changes from all commits
c548c67
f4ed269
240c6ee
b9bd131
3528654
5a860e1
cc22ff6
e3b10ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
""" | ||
import datetime | ||
import operator | ||
from typing import Tuple, Union | ||
from typing import Set, Tuple, Union | ||
|
||
import numpy as np | ||
|
||
|
@@ -59,6 +59,37 @@ | |
rxor, | ||
) | ||
|
||
# ----------------------------------------------------------------------------- | ||
# constants | ||
ARITHMETIC_BINOPS: Set[str] = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jbrockmendel am I reinventing any wheels here? This seems like something useful enough that it would have been done before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i dont think so, no There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just as FYI if you create a container with literal values mypy will infer that it is a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know! |
||
"add", | ||
"sub", | ||
"mul", | ||
"pow", | ||
"mod", | ||
"floordiv", | ||
"truediv", | ||
"divmod", | ||
"radd", | ||
"rsub", | ||
"rmul", | ||
"rpow", | ||
"rmod", | ||
"rfloordiv", | ||
jreback marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"rtruediv", | ||
"rdivmod", | ||
} | ||
|
||
|
||
COMPARISON_BINOPS: Set[str] = { | ||
"eq", | ||
"ne", | ||
"lt", | ||
"gt", | ||
"le", | ||
"ge", | ||
} | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Ops Wrapping Utilities | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.