nushell/crates/nu_plugin_polars/src
Jack Wright df3892f323
Provide the ability to split strings in columns via polars str-split (#14723)
# Description
Provides the ability to split string columns. This will change the
column type to list<str>.

```nushell
> ❯ : [[a]; ["one,two,three"]] | polars into-df | polars select (polars col a | polars str-split ",") | polars collect
╭───┬───────────────╮
│ # │       a       │
├───┼───────────────┤
│ 0 │ ╭───┬───────╮ │
│   │ │ 0 │ one   │ │
│   │ │ 1 │ two   │ │
│   │ │ 2 │ three │ │
│   │ ╰───┴───────╯ │
╰───┴───────────────╯

> ❯ : [[a]; ["one,two,three"]] | polars into-df | polars select (polars col a | polars str-split ",") | polars schema
╭───┬───────────╮
│ a │ list<str> │
╰───┴───────────╯
```



# User-Facing Changes
- Introduces new command `polars str-split`
2025-01-02 15:03:24 -06:00
..
cache Polars AWS S3 support (#14648) 2024-12-25 06:15:50 -06:00
cloud Polars AWS S3 support (#14648) 2024-12-25 06:15:50 -06:00
dataframe Provide the ability to split strings in columns via polars str-split (#14723) 2025-01-02 15:03:24 -06:00
lib.rs Polars AWS S3 support (#14648) 2024-12-25 06:15:50 -06:00
main.rs Polars AWS S3 support (#14648) 2024-12-25 06:15:50 -06:00