add price band to data and calculate it

This commit is contained in:
2026-06-15 13:12:02 +00:00
parent be3c271041
commit 9f65e5ed9d

View File

@@ -33,5 +33,8 @@ def transform_example_dataset(df: pd.DataFrame) -> pd.DataFrame:
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