nushell/crates/nu_plugin_polars
Jack Wright f8ed4b45fd
Introducing polars into-schema (#15534)
# Description
Introduces `polars into-schema` which allows converting Values such as
records to a schema. This implicitly happens when when passing records
into commands like `polars into-df` today. This allows you to convert to
a schema object ahead of time and reuse the schema object. This can be
useful for guaranteeing your schema object is correct.

```nu
> ❯ : let schema = ({name: str, type: str} | polars into-schema)

> ❯ : ls | select name type | polars into-lazy -s $schema | polars schema
╭──────┬─────╮
│ name │ str │
│ type │ str │
╰──────┴─────╯
```

# User-Facing Changes
- Introduces `polars into-schema` allowing records to be converted to
schema objects.
2025-04-10 16:07:44 -07:00
..
src Introducing polars into-schema (#15534) 2025-04-10 16:07:44 -07:00
Cargo.toml build(deps): bump indexmap from 2.8.0 to 2.9.0 (#15531) 2025-04-09 13:15:29 +08:00
LICENSE Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00