{"record":{"id":"23e2193540a8699a","repo":"pola-rs/polars","slug":"not-implemented-for","errorCode":null,"errorMessage":"not implemented for {:?}","messagePattern":"not implemented for (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-core/src/utils/mod.rs","lineNumber":656,"sourceCode":"            #[cfg(feature = \"dtype-u16\")]\n            DataType::UInt16 => $macro!($self.u16().unwrap() $(, $opt_args)*),\n            DataType::UInt32 => $macro!($self.u32().unwrap() $(, $opt_args)*),\n            DataType::UInt64 => $macro!($self.u64().unwrap() $(, $opt_args)*),\n            #[cfg(feature = \"dtype-u128\")]\n            DataType::UInt128 => $macro!($self.u128().unwrap() $(, $opt_args)*),\n            #[cfg(feature = \"dtype-i8\")]\n            DataType::Int8 => $macro!($self.i8().unwrap() $(, $opt_args)*),\n            #[cfg(feature = \"dtype-i16\")]\n            DataType::Int16 => $macro!($self.i16().unwrap() $(, $opt_args)*),\n            DataType::Int32 => $macro!($self.i32().unwrap() $(, $opt_args)*),\n            DataType::Int64 => $macro!($self.i64().unwrap() $(, $opt_args)*),\n            #[cfg(feature = \"dtype-i128\")]\n            DataType::Int128 => $macro!($self.i128().unwrap() $(, $opt_args)*),\n            #[cfg(feature = \"dtype-f16\")]\n            DataType::Float16 => $macro!($self.f16().unwrap() $(, $opt_args)*),\n            DataType::Float32 => $macro!($self.f32().unwrap() $(, $opt_args)*),\n            DataType::Float64 => $macro!($self.f64().unwrap() $(, $opt_args)*),\n            dt => panic!(\"not implemented for {:?}\", dt),\n        }\n    }};\n}\n\n/// Apply a macro on the Downcasted ChunkedArrays of DataTypes that are logical numerics.\n/// So no logical.\n#[macro_export]\nmacro_rules! downcast_as_macro_arg_physical_mut {\n    ($self:expr, $macro:ident $(, $opt_args:expr)*) => {{\n        // clone so that we do not borrow\n        match $self.dtype().clone() {\n            #[cfg(feature = \"dtype-u8\")]\n            DataType::UInt8 => {\n                let ca: &mut UInt8Chunked = $self.as_mut();\n                $macro!(UInt8Type, ca $(, $opt_args)*)\n            },\n            #[cfg(feature = \"dtype-u16\")]\n            DataType::UInt16 => {","sourceCodeStart":638,"sourceCodeEnd":674,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-core/src/utils/mod.rs#L638-L674","documentation":"Variant of the no_matching_dtype macro that operates on a Series ($self accessor dispatch); if the series' dtype matches no (feature-enabled) arm, it panics with 'not implemented for {:?}'. Means the operation lacks an implementation for that series dtype in this build.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"not implemented for {:?}\". Typical triggers: unsupported dtype or feature-gated code path reached at runtime, invalid user input or environment variable value, calling API methods in the wrong order or on mismatched types, or data (lengths, offsets, ranges) violating the function's preconditions.","commonSituations":"Encountered when input data or configuration does not meet the preconditions of the throwing code path (\"not implemented for {:?}\"). Common cases: missing Cargo feature flags, mismatched dtypes/lengths between arrays or series, out-of-range temporal values, malformed environment variables, or operations on unsupported/complex nested types.","solutions":["This operation is not implemented for the given type; convert to a supported type first.","Consult the function's supported-type list and cast accordingly."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"68506541d2de983056c9eb244e1ea05fab377dfc","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}