Skip to content

Commit

Permalink
use Series::clear
Browse files Browse the repository at this point in the history
  • Loading branch information
reswqa committed Oct 23, 2023
1 parent 20f8b30 commit 7a3d7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-core/src/chunked_array/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
},
Expand Down

0 comments on commit 7a3d7a5

Please sign in to comment.