-
Notifications
You must be signed in to change notification settings - Fork 159
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
[FEAT] Implements other trigonometry expressions #2123
Conversation
if not is_arc: | ||
table = MicroPartition.from_pydict({"a": [0.0, math.pi, math.pi / 2, math.nan]}) | ||
else: | ||
table = MicroPartition.from_pydict({"a": [0.0, 1, 0.5, math.nan]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. However, I think nan
is more appropriate(this is also the behavior of this PR), because there may be only a few invalid values in a series at any one time, but panic will stop the world. You can always use something like dropNan
to filter out invalid values if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems reasonable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MeepoWin You're so fast at this now! 🥇
The only trigonometric function we are missing from Ibis is
arctan2
, which I will implement in other PRs.This closes #1908
This closes #1915