最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

list - How to get access to ListNamespace functions in nodejs-polars - Stack Overflow

programmeradmin4浏览0评论

Starting to evaluate the nodejs-polars package and I am facing some issues to get access to the functions related to List Datatype inside a DataFrame. Online help is not providing any entries on these functons (no Interface for ListNamespace), I looked at the source code and obviously, the declarations of these functions are there.

Anyone can point me to some JS code example to use these functions ? In python:

df = pl.DataFrame({"a": [[3, 2, 1], [], [1, 2]]}) df.with_columns(contains=pl.col("a").list.contains(1)

How to do the same thing with nodejs-polars ? All my attempts failed...

let df = pl.DataFrame({"a": [[3, 2, 1], [], [1, 2]]}) .withColumn(pl.col("a").list.contains(1)) >> TypeError: pl.col(...).list.contains is not a function

Thanks in advance

发布评论

评论列表(0)

  1. 暂无评论