pola-rs / pyo3-polars

Plugins/extension for Polars
MIT License
238 stars 39 forks source link

`LazyFrame` example is broken #25

Closed DeliciousHair closed 1 year ago

DeliciousHair commented 1 year ago

EDIT:

My bad, was not using current version of python-polars. Problem solved with update.

And I think the problem may be the LazyFrame handler is not working, rather than the example.

Reproducible error:

lf = (
    pl.DataFrame({
        "list_a": [[1, 2, 3], [5, 5]],
        "list_b": [[1, 2, 3, 8], [5, 1, 1]]
    })
    .lazy()
)
lazy_parallel_jaccard(lf, "list_a", "list_b")

output:

PanicException: called `Result::unwrap()` on an `Err` value: PyErr { type: <class 'RuntimeError'>, value: RuntimeError('BindingsError: "Semantic(None, \\"unknown field `bit_settings`, expected one of `name`, `datatype`, `values`\\")"'), traceback: Some(<traceback object at 0x7f5febcf6540>) }