nushell/crates/nu_plugin_polars
Jack Wright 1bded8572c
Ensure that two columns named index don't exist when converting a Dataframe to a nu Value. (#12501)
# Description
@maxim-uvarov discovered an issue with the current implementation. When
executing [[index a]; [1 1]] | polars into-df, a plugin_failed_to_decode
error occurs. This happens because a Record is created with two columns
named "index" as an index column is added during conversion. This pull
request addresses the problem by not adding an index column if there is
already a column named "index" in the dataframe.

---------

Co-authored-by: Jack Wright <jack.wright@disqo.com>
2024-04-13 06:33:29 -05:00
..
src Ensure that two columns named index don't exist when converting a Dataframe to a nu Value. (#12501) 2024-04-13 06:33:29 -05:00
Cargo.toml Handle relative paths correctly on polars to-(parquet|jsonl|arrow|etc) commands (#12486) 2024-04-12 19:30:37 -05:00
LICENSE Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00