pola-rs/polars

.list.product

Open

#12,862 建立於 2023年12月2日

在 GitHub 查看
 (6 留言) (4 反應) (1 負責人)Rust (38,496 star) (2,826 fork)batch import
acceptedenhancementgood first issue

描述

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
]

貢獻者指南