{"record":{"id":"f59ee5963d703db3","repo":"pola-rs/polars","slug":"date-not-implemented-for-dt","errorCode":null,"errorMessage":"date not implemented for {dt:?}","messagePattern":"date not implemented for (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-core/src/series/mod.rs","lineNumber":939,"sourceCode":"            {\n                Ok(self)\n            },\n            dt => panic!(\"into_decimal({precision:?}, {scale}) not implemented for {dt:?}\"),\n        }\n    }\n\n    #[cfg(feature = \"dtype-time\")]\n    pub fn into_time(self) -> Series {\n        match self.dtype() {\n            DataType::Int64 => self.i64().unwrap().clone().into_time().into_series(),\n            DataType::Time => self\n                .time()\n                .unwrap()\n                .physical()\n                .clone()\n                .into_time()\n                .into_series(),\n            dt => panic!(\"date not implemented for {dt:?}\"),\n        }\n    }\n\n    pub fn into_date(self) -> Series {\n        #[cfg(not(feature = \"dtype-date\"))]\n        {\n            panic!(\"activate feature dtype-date\")\n        }\n        #[cfg(feature = \"dtype-date\")]\n        match self.dtype() {\n            DataType::Int32 => self.i32().unwrap().clone().into_date().into_series(),\n            DataType::Date => self\n                .date()\n                .unwrap()\n                .physical()\n                .clone()\n                .into_date()\n                .into_series(),","sourceCodeStart":921,"sourceCodeEnd":957,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-core/src/series/mod.rs#L921-L957","documentation":"Series::into_time supports only Int64 (physical epoch representation) and Time dtypes; other dtypes hit the fallback panic naming the dtype. Means you called into_time on a series that is not a time or its Int64 physical form — cast first.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"date not implemented for {dt:?}\". 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 (\"date not implemented for {dt:?}\"). 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":["Convert the series to Date only from supported dtypes (Date32/Int32/Datetime).","Cast the source to a datetime or integer days representation first."],"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-14T05:17:10.506Z"}