nushell/crates/nu_plugin_polars/src/dataframe/eager
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
..
append.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
cast.rs 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
columns.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
drop_duplicates.rs 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
drop_nulls.rs 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
drop.rs 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
dtypes.rs 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
dummies.rs 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
filter_with.rs 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
first.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
get.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
last.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
list.rs displaying span information, creation time, and size with polars ls (#12472) 2024-04-12 09:23:46 -05:00
melt.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
mod.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
open.rs 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
query_df.rs 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
rename.rs 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
sample.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
schema.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
shape.rs 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
slice.rs 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
sql_context.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
sql_expr.rs Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00
summary.rs 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
take.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
to_arrow.rs Handle relative paths correctly on polars to-(parquet|jsonl|arrow|etc) commands (#12486) 2024-04-12 19:30:37 -05:00
to_avro.rs Handle relative paths correctly on polars to-(parquet|jsonl|arrow|etc) commands (#12486) 2024-04-12 19:30:37 -05:00
to_csv.rs Handle relative paths correctly on polars to-(parquet|jsonl|arrow|etc) commands (#12486) 2024-04-12 19:30:37 -05:00
to_df.rs 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
to_json_lines.rs Handle relative paths correctly on polars to-(parquet|jsonl|arrow|etc) commands (#12486) 2024-04-12 19:30:37 -05:00
to_nu.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00
to_parquet.rs Handle relative paths correctly on polars to-(parquet|jsonl|arrow|etc) commands (#12486) 2024-04-12 19:30:37 -05:00
with_column.rs Fixing NuLazyFrame/NuDataFrame conversion issues (#12538) 2024-04-16 11:16:37 -05:00