{"record":{"id":"4d5f1a618598b05a","repo":"pola-rs/polars","slug":"activate-propagate-nans-feature","errorCode":null,"errorMessage":"activate 'propagate_nans' feature","messagePattern":"activate 'propagate_nans' feature","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-expr/src/expressions/aggregation.rs","lineNumber":90,"sourceCode":"                    s,\n                    allow_threading,\n                ),\n            },\n            #[cfg(feature = \"propagate_nans\")]\n            GroupByMethod::NanMin => parallel_op_columns(\n                |s| {\n                    Ok(polars_ops::prelude::nan_propagating_aggregate::nan_min_s(\n                        s.as_materialized_series(),\n                        s.name().clone(),\n                    )\n                    .into_column())\n                },\n                s,\n                allow_threading,\n            ),\n            #[cfg(not(feature = \"propagate_nans\"))]\n            GroupByMethod::NanMin => {\n                panic!(\"activate 'propagate_nans' feature\")\n            },\n            GroupByMethod::Max => match s.is_sorted_flag() {\n                IsSorted::Ascending | IsSorted::Descending => {\n                    s.max_reduce().map(|sc| sc.into_column(s.name().clone()))\n                },\n                IsSorted::Not => parallel_op_columns(\n                    |s| s.max_reduce().map(|sc| sc.into_column(s.name().clone())),\n                    s,\n                    allow_threading,\n                ),\n            },\n            #[cfg(feature = \"propagate_nans\")]\n            GroupByMethod::NanMax => parallel_op_columns(\n                |s| {\n                    Ok(polars_ops::prelude::nan_propagating_aggregate::nan_max_s(\n                        s.as_materialized_series(),\n                        s.name().clone(),\n                    )","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/crates/polars-expr/src/expressions/aggregation.rs#L72-L108","documentation":"Panic when evaluating a nan_min/nan_max group-by aggregation while the propagate_nans feature is disabled at compile time: no NaN-propagating implementation exists in this build. Rebuild polars-expr with propagate_nans enabled or use regular min/max.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"activate 'propagate_nans' feature\". 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 'propagate_nans' feature\"). 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 `propagate_nans` cargo feature for NaN-propagating aggregations.","Handle NaNs explicitly (fillna/drop_nans) before aggregating without the feature."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}