nushell/crates/nu_plugin_polars/src
Jack Wright b0f9cda9b5
Introduction of NuDataType and polars dtype (#15529)
# Description
This pull request does a lot of the heavy lifting needed to supported
more complex dtypes like categorical dtypes. It introduces a new
CustomValue, NuDataType and makes NuSchema a full CustomValue. Further
more it introduces a new command `polars into-dtype` that allows a dtype
to be created. This can then be passed into schemas when they are
created.

```nu
> ❯ : let dt = ("str" | polars to-dtype)

> ❯ : [[a b]; ["one" "two"]] | polars into-df -s {a: $dt, b: str} | polars schema
╭───┬─────╮
│ a │ str │
│ b │ str │
╰───┴─────╯
```

# User-Facing Changes
- Introduces new command `polars into-dtype`, allows dtype variables to
be passed in during schema creation.
2025-04-09 08:13:49 -07:00
..
cache Introduction of NuDataType and polars dtype (#15529) 2025-04-09 08:13:49 -07:00
cloud Polars AWS S3 support (#14648) 2024-12-25 06:15:50 -06:00
dataframe Introduction of NuDataType and polars dtype (#15529) 2025-04-09 08:13:49 -07:00
lib.rs Introduction of NuDataType and polars dtype (#15529) 2025-04-09 08:13:49 -07:00
main.rs remove mimalloc allocator (#15317) 2025-03-15 09:32:55 -05:00