From 2fadac0176bbc2169e98af85a8a9e5d7d4d7c295 Mon Sep 17 00:00:00 2001 From: Mary Brown Date: Mon, 15 Jun 2026 13:26:26 +0000 Subject: [PATCH] Add price band --- src/template_code_location/ops/ops.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/template_code_location/ops/ops.py b/src/template_code_location/ops/ops.py index 3a73b18..eb576e8 100644 --- a/src/template_code_location/ops/ops.py +++ b/src/template_code_location/ops/ops.py @@ -32,6 +32,9 @@ def transform_example_dataset(df: pd.DataFrame) -> pd.DataFrame: """Applies a simple transformation to the example dataset.""" df["total_price"] = df["quantity"] * df["unit_price"] - + + df["price_band"] = df["total_price"].apply( + lambda value: "high" if value >= 25 else "standard" + ) return df