diff --git a/crates/polars-core/src/series/implementations/list.rs b/crates/polars-core/src/series/implementations/list.rs index ebb208bf8a0f..c4361b284e33 100644 --- a/crates/polars-core/src/series/implementations/list.rs +++ b/crates/polars-core/src/series/implementations/list.rs @@ -195,7 +195,7 @@ impl SeriesTrait for SeriesWrap { #[cfg(feature = "group_by_list")] fn unique(&self) -> PolarsResult { if !self.inner_dtype().is_numeric() { - polars_bail!(opq = unique, self.inner_dtype()); + polars_bail!(opq = unique, self.dtype()); } // this can be called in aggregation, so this fast path can be worth a lot if self.len() < 2 { @@ -211,7 +211,7 @@ impl SeriesTrait for SeriesWrap { #[cfg(feature = "group_by_list")] fn n_unique(&self) -> PolarsResult { if !self.inner_dtype().is_numeric() { - polars_bail!(opq = n_unique, self.inner_dtype()); + polars_bail!(opq = n_unique, self.dtype()); } // this can be called in aggregation, so this fast path can be worth a lot match self.len() { @@ -228,7 +228,7 @@ impl SeriesTrait for SeriesWrap { #[cfg(feature = "group_by_list")] fn arg_unique(&self) -> PolarsResult { if !self.inner_dtype().is_numeric() { - polars_bail!(opq = arg_unique, self.inner_dtype()); + polars_bail!(opq = arg_unique, self.dtype()); } // this can be called in aggregation, so this fast path can be worth a lot if self.len() == 1 {