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

Support pow operation for list dtype #19349

Open
bike-picket opened this issue Oct 21, 2024 · 0 comments
Open

Support pow operation for list dtype #19349

bike-picket opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or an improvement of an existing feature P-low Priority: low

Comments

@bike-picket
Copy link

bike-picket commented Oct 21, 2024

Description

Polars 1.1.0 brings improved list arithmetic support #19162. A huge thank you for this improvement!

Unfortunately, I noticed that pow operation is still not supported. For example, I execute this code:

value = pl.Series("value", [[1, 2, 3]])
exponent = pl.Series("exponent", [[2, 2, 3]])
result = (value ** exponent).to_list()
self.assertEqual([[1, 4, 27]], result)

which produces:

polars.exceptions.InvalidOperationError: `pow` operation not supported for dtype `list[i64]` as base
@bike-picket bike-picket added the enhancement New feature or an improvement of an existing feature label Oct 21, 2024
@orlp orlp added the P-low Priority: low label Oct 21, 2024
@github-project-automation github-project-automation bot moved this to Ready in Backlog Oct 21, 2024
@nameexhaustion nameexhaustion self-assigned this Oct 24, 2024
@nameexhaustion nameexhaustion changed the title Support pow opration for list dtype Support pow operation for list dtype Oct 24, 2024
@nameexhaustion nameexhaustion removed their assignment Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature P-low Priority: low
Projects
Status: Ready
Development

No branches or pull requests

3 participants