-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tracking issue for missing methods in arr
namespace
#21302
Comments
It looks like import polars as pl
s1 = pl.Series([[1, 2], [3, 4]], dtype=pl.Array(pl.Int32, 2))
s2 = pl.Series([[5, 6], [7, 8]], dtype=pl.Array(pl.Int32, 2))
>>> pl.select(pl.concat_arr((s1, s2)))
# shape: (2, 1)
# ┌───────────────┐
# │ │
# │ --- │
# │ array[i32, 4] │
# ╞═══════════════╡
# │ [1, 2, … 6] │
# │ [3, 4, … 8] │
# └───────────────┘ |
If anyone were to go about implementing this. Please, go method by method and don't do all at once. The compute-kernels used by the |
I would like to take this issue |
Hi @DhruvBShetty |
arr
arr
namespace
arr
namespacearr
namespace
For Otherwise, those should output as |
Description
arr
seems to be missing the following methods that ought to work with fixed sizes.concat
eval
gather
gather_every
len
(feat: Add len method to arr #21618)mean
sample
slice
head
tail
As an aside, I see that
arr.unique
already exists which creates the precedent that an arr operation can return a list whereas I excluded operations that can't necessarily return a fixed size.The text was updated successfully, but these errors were encountered: