{"record":{"id":"4335c26994433273","repo":"pola-rs/polars","slug":"activate-feature-dtype-date","errorCode":null,"errorMessage":"activate feature dtype-date","messagePattern":"activate feature dtype-date","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-core/src/series/mod.rs","lineNumber":946,"sourceCode":"    #[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(),\n            dt => panic!(\"date not implemented for {dt:?}\"),\n        }\n    }\n\n    #[allow(unused_variables)]\n    pub fn into_datetime(self, timeunit: TimeUnit, tz: Option<TimeZone>) -> Series {\n        #[cfg(not(feature = \"dtype-datetime\"))]","sourceCodeStart":928,"sourceCodeEnd":964,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-core/src/series/mod.rs#L928-L964","documentation":"Series::into_date is compiled only when the 'dtype-date' cargo feature is on; with the feature disabled the function body unconditionally panics with this build-configuration message. Fix by rebuilding polars-core/polars with feature dtype-date enabled.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"activate feature dtype-date\". 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 (\"activate feature dtype-date\"). 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":["Enable the `dtype-date` cargo feature to use Date dtype.","Store the values as Datetime or Int32 days if the feature cannot be enabled."],"exampleFix":null,"handlingStrategy":"fallback","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"}