nushell/crates/nu_plugin_polars/src/dataframe
Jack Wright a7a5ec31be
Fixing NuLazyFrame/NuDataFrame conversion issues (#12538)
# Description

@maxim-uvarov brought up another case where converting back and forth
between eager and lazy dataframes was not working correctly:

```
> [[a b]; [6 2] [1 4] [4 1]] | polars into-lazy | polars append -c ([[a b]; [6 2] [1 4] [4 1]] | polars into-df)
Error: nu:🐚:cant_convert

  × Can't convert to NuDataFrame.
   ╭─[entry #1:1:49]
 1 │ [[a b]; [6 2] [1 4] [4 1]] | polars into-lazy | polars append -c ([[a b]; [6 2] [1 4] [4 1]] | polars into-df)
   ·                                                 ──────┬──────
   ·                                                       ╰── can't convert NuLazyFrameCustomValue to NuDataFrame
   ╰────
```

This pull request fixes this case and glaringly obvious similar cases I
could find.

Co-authored-by: Jack Wright <jack.wright@disqo.com>
2024-04-16 11:16:37 -05:00
..
eager Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
expressions Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
lazy Cleaning up to_pipe_line_data and cache_and_to_value, making them part of CustomValueSupport (#12528) 2024-04-16 06:35:52 -05:00
series Cleaning up to_pipe_line_data and cache_and_to_value, making them part of CustomValueSupport (#12528) 2024-04-16 06:35:52 -05:00
values Cleaning up to_pipe_line_data and cache_and_to_value, making them part of CustomValueSupport (#12528) 2024-04-16 06:35:52 -05:00
mod.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
README.md Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
stub.rs Showing full help when running the polars command (#12462) 2024-04-10 07:26:33 -05:00
utils.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00

Dataframe

This dataframe directory holds all of the definitions of the dataframe data structures and commands.

There are three sections of commands:

For more details see the Nushell book section on dataframes