diff --git a/crates/polars-core/src/chunked_array/random.rs b/crates/polars-core/src/chunked_array/random.rs index 1238f8417db2f..0f51b5e44b3f9 100644 --- a/crates/polars-core/src/chunked_array/random.rs +++ b/crates/polars-core/src/chunked_array/random.rs @@ -245,7 +245,7 @@ impl DataFrame { let new_cols = self .columns .iter() - .map(|c| Series::new_empty(c.name(), c.dtype())) + .map(Series::clear) .collect_trusted(); Ok(DataFrame::new_no_checks(new_cols)) },