From e8a1a9345bf94b02779afad8cfc4117e71efa2cc Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Wed, 4 Jan 2023 09:47:44 +0100 Subject: [PATCH] fix(rust, python): keep column names in is_null/is_not_null --- 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