pola-rs/polars

.list.product

已关闭

#12,862 创建于 2023年12月2日

 (6 条评论) (4 个反应) (1 位负责人)Rust (2,826 个派生)batch import
acceptedenhancementgood first issue

仓库指标

星标
 (38,496 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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
]

贡献者指南