nushell/crates/nu_plugin_polars/src
Jack Wright af77bc60e2
Improved null handling when converting from nu -> dataframe. (#13855)
# Description
Fixes: #12726 and #13185

Previously converting columns that contained null caused polars to force
a dtype of object even when using a schema.

Now:
1. When using a schema, the type the schema defines for the column will
always be used.
2. When a schema is not used, the previous type is used when a value is
null.

# User-Facing Changes
- The type defined by the schema we be respected when passing in a null
value `[a]; [null] | polars into-df -s {a: str}` will create a df with
an str dtype column with one null value versus a column of type object.
- *BREAKING CHANGE* If you define a schema, all columns must be in the
schema.
2024-09-16 18:07:13 -05:00
..
cache Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
dataframe Improved null handling when converting from nu -> dataframe. (#13855) 2024-09-16 18:07:13 -05:00
lib.rs catch unwrap on panics with polars collect (#13850) 2024-09-15 07:21:02 -05:00
main.rs Converted perf function to be a macro. Utilized the perf macro within the polars plugin. (#13224) 2024-06-27 18:56:56 -05:00