diff --git a/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/mod.rs b/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/mod.rs index 7fe44a75b0..209acf594c 100644 --- a/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/mod.rs +++ b/crates/nu_plugin_polars/src/dataframe/values/nu_dataframe/mod.rs @@ -162,7 +162,9 @@ impl NuDataFrame { for value in iter { match value { - Value::Custom { .. } => return Self::try_from_value(plugin, &value), + Value::Custom { .. } => { + return Self::try_from_value_coerce(plugin, &value, value.span()); + } Value::List { vals, .. } => { let record = vals .into_iter()