Closed MarcoGorelli closed 7 months ago
Functions are not really allowed to change names. We follow the left hand rule and of course alias
.
thanks - @ion-elgreco you may want to not name the output "neighbours"
here
then, else the lazy schema will be incorrect
check this report from the discord:
When I run the following lazily:
import polars_hash as plh (pl.from_dicts({'h1':'sp1xk2m6194y'}) # .lazy() .with_columns(plh.col('h1').geohash.neighbors()) .unnest('h1') .select(pl.concat_list('n', 'ne')) # .fetch() )
I get:
SchemaError: expected struct dtype, got: 'str'
@MarcoGorelli ah oops, I missed that report, only just saw the issue on my repo now.
I'll pass the original name of the series back then instead
Here's a reproducible example:
Cargo.toml
pyproject.toml
minimal_plugin/__init__.py
:src/lib.rs
:src/expressions.rs
:run.py
This outputs:
Expected: