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

feat: add dt accessor to the main ak accessor #40

Merged
merged 12 commits into from
Apr 29, 2024

Conversation

douglasdavis
Copy link
Collaborator

@douglasdavis douglasdavis commented Oct 18, 2023

Use pyarrow.compute's datetime support

Copy link
Member

@martindurant martindurant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


@functools.wraps(fn)
def wrapper(*args, **kwargs):
arrow_array = ak.to_arrow(self.accessor.array, extensionarray=False)
Copy link
Member

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".

@douglasdavis douglasdavis marked this pull request as draft October 18, 2023 18:33
@martindurant martindurant merged commit 7f34eab into intake:main Apr 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants