Skip to content

Commit

Permalink
fix(rust, python): keep column names in is_null/is_not_null (#6032)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jan 4, 2023
1 parent 32c094d commit 88cc5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polars/polars-core/src/chunked_array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ impl<T: PolarsDataType> ChunkedArray<T> {
/// Get a mask of the null values.
pub fn is_null(&self) -> BooleanChunked {
if !self.has_validity() {
return BooleanChunked::full("is_null", false, self.len());
return BooleanChunked::full(self.name(), false, self.len());
}
let chunks = self
.chunks
Expand All @@ -362,7 +362,7 @@ impl<T: PolarsDataType> ChunkedArray<T> {
/// Get a mask of the valid values.
pub fn is_not_null(&self) -> BooleanChunked {
if !self.has_validity() {
return BooleanChunked::full("is_not_null", true, self.len());
return BooleanChunked::full(self.name(), true, self.len());
}
let chunks = self
.chunks
Expand Down

0 comments on commit 88cc5cf

Please sign in to comment.