pola-rs/polars

.list.product

クローズ

#12,862 opened on 2023/12/02

 (6 件のコメント) (4 件のリアクション) (1 人の担当者)Rust (2,826 件のフォーク)batch import
acceptedenhancementgood first issue

Repository metrics

Stars
 (38,496 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Description

If there's .list.sum, perhaps .list.product would also be in-scope?

Current workaround

In [30]: s
Out[30]:
shape: (2,)
Series: '' [list[i64]]
[
        [1, 2, 3]
        [4, 5, 6]
]

In [31]: s.list.eval(pl.element().product()).list.first()
Out[31]:
shape: (2,)
Series: '' [i64]
[
        6
        120
]

コントリビューターガイド