Skip to content

Commit

Permalink
fix: Implement arg_sort for Null series (#20135)
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite authored Dec 3, 2024
1 parent bf8f64c commit 9b91418
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/polars-core/src/series/implementations/null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ impl SeriesTrait for NullChunked {
Ok(self.clone().into_series())
}

fn arg_sort(&self, _options: SortOptions) -> IdxCa {
IdxCa::from_vec(self.name().clone(), (0..self.len() as IdxSize).collect())
}

fn is_null(&self) -> BooleanChunked {
BooleanChunked::full(self.name().clone(), true, self.len())
}
Expand Down

0 comments on commit 9b91418

Please sign in to comment.