Expression.pow
Is your feature request related to a problem?
Daft support in Narwhals
Describe the solution you'd like
daft.col('a').pow(2), or daft.col('a') ** 2
Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
No
I actually ended up implementing this partially for skew, so I can finish it off soon. Will assign to myself
I'm going to keep the PR open (https://github.com/Eventual-Inc/Daft/pull/4716) for now. Anyone who's interested in this task, feel free to use the PR as a starting point.
Assigning to @ykdojo as a first task!
For everyone here - I may not have time to work on it for the next few weeks, so pls feel free to take it if I don't get to it
Can I take a stab at this one?
@kliwongan pls go ahead!
Hi @kliwongan! How is development going?
Hello there @malcolmgreaves! I paused for a while but recently got back into it and am a bit stuck, not sure what more I should do here; wondering if there are similar PRs for reference.
@kliwongan do you mind opening a draft PR of what you have so far so we can take a look, maybe add some comments?
Oh yes, it's actually already opened here, I mentioned it earlier in the issue: #5237
Overall the PR looks good @kliwongan. I think the last thing is adding tests of pow running on input. It looks like similar tests are in tests/recordbatch/numeric/test_numeric.py and maybe also test/expressions/typing/test_arithmetic.py. I think once those are added, it should be ready!
@colin-ho can we mark this as done?
Completed in https://github.com/Eventual-Inc/Daft/pull/5237