nushell/crates/nu_plugin_polars
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
..
src Improved null handling when converting from nu -> dataframe. (#13855) 2024-09-16 18:07:13 -05:00
Cargo.toml Expression support for polars strftime (#13767) 2024-09-04 12:19:29 +02:00
LICENSE Move dataframes support to a plugin (#12220) 2024-04-09 19:31:43 -05:00