From 88cc5cf0a625dd929c22ba2d166dfd97c424b562 Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Wed, 4 Jan 2023 10:13:39 +0100 Subject: [PATCH] fix(rust, python): keep column names in is_null/is_not_null (#6032) --- polars/polars-core/src/chunked_array/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polars/polars-core/src/chunked_array/mod.rs b/polars/polars-core/src/chunked_array/mod.rs index 3fd0f16d1d0b..c470d66ac5cd 100644 --- a/polars/polars-core/src/chunked_array/mod.rs +++ b/polars/polars-core/src/chunked_array/mod.rs @@ -343,7 +343,7 @@ impl ChunkedArray { /// 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 @@ -362,7 +362,7 @@ impl ChunkedArray { /// 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