-
Notifications
You must be signed in to change notification settings - Fork 6
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: add dt
accessor to the main ak
accessor
#40
Conversation
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 are a few more functions in https://arrow.apache.org/docs/python/api/compute.html#conversions
src/awkward_pandas/datetimes.py
Outdated
|
||
@functools.wraps(fn) | ||
def wrapper(*args, **kwargs): | ||
arrow_array = ak.to_arrow(self.accessor.array, extensionarray=False) |
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.
This is where we would test for a compatible timestamp unit - I assume ak doesn't handle this. We may need to "cast".
Use
pyarrow.compute
's datetime support