Skip to content

Commit

Permalink
Use IdxType
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller committed Mar 28, 2024
1 parent b0a7a0b commit 51345cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/polars-core/src/series/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ impl Series {
} else {
match self.dtype() {
#[cfg(feature = "object")]
DataType::Object(_, _) => self.take(&UInt32Chunked::new_vec("", vec![])).unwrap(),
DataType::Object(_, _) => self
.take(&ChunkedArray::<IdxType>::new_vec("", vec![]))
.unwrap(),
dt => Series::new_empty(self.name(), dt),
}
}
Expand Down

0 comments on commit 51345cb

Please sign in to comment.