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

[FEA] dt.total_seconds #16802

Open
MarcoGorelli opened this issue Sep 12, 2024 · 1 comment
Open

[FEA] dt.total_seconds #16802

MarcoGorelli opened this issue Sep 12, 2024 · 1 comment
Labels
feature request New feature or request Python Affects Python cuDF API.

Comments

@MarcoGorelli
Copy link

Is your feature request related to a problem? Please describe.

I wish I could use cuDF to do .dt.total_seconds on a timedelta column

Describe the solution you'd like

.dt.total_seconds

Describe alternatives you've considered

Additional context

We're (for now) xfailing tests in Narwhals narwhals-dev/narwhals#951

@mroeschke
Copy link
Contributor

Thanks for the report!

Although this could be easily implemented by summing the timedelta components, I think there was a desire to implement a dedicated libcudf kernel for total_seconds to avoid the n kernel launches to sum each individual component (IIRC cc @bdice you may have been apart of that passing discussion somewhere)

@mroeschke mroeschke added Python Affects Python cuDF API. and removed cuDF (Python) labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Python Affects Python cuDF API.
Projects
None yet
Development

No branches or pull requests

2 participants