nushell/crates/nu_plugin_polars/src/cache
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
..
get.rs Upgrade to polars 0.43 (#14148) 2024-10-23 19:14:24 +02:00
list.rs Introduction of NuDataType and polars dtype (#15529) 2025-04-09 08:13:49 -07:00
mod.rs Polars: Minor code cleanup (#15144) 2025-02-19 09:47:21 -08:00
rm.rs Polars AWS S3 support (#14648) 2024-12-25 06:15:50 -06:00