Compare commits
8 Commits
5a7f568ba6
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 01fb721162 | |||
| db85eb865f | |||
| 1dd776a410 | |||
| cfdeef41cb | |||
| e92e98a936 | |||
| 7e743c1157 | |||
| 7c028ef02f | |||
| e0ba120da4 |
@@ -32,7 +32,7 @@ def transform_example_dataset(df: pd.DataFrame) -> pd.DataFrame:
|
|||||||
"""Applies a simple transformation to the example dataset."""
|
"""Applies a simple transformation to the example dataset."""
|
||||||
|
|
||||||
df["total_price"] = df["quantity"] * df["unit_price"]
|
df["total_price"] = df["quantity"] * df["unit_price"]
|
||||||
|
|
||||||
df["price_band"] = df["total_price"].apply(
|
df["price_band"] = df["total_price"].apply(
|
||||||
lambda value: "high" if value >= 25 else "standard"
|
lambda value: "high" if value >= 25 else "standard"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user