Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikasamborska1994 committed Feb 28, 2025
1 parent dd6bc5a commit 3981b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Load a meadow dataset and create a garden dataset."""

import pandas as pd

from etl.helpers import PathFinder, create_dataset

# Get paths and naming conventions for current step.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ def run(dest_dir: str) -> None:
#
tb = tb[["bench", "threshold_model", "end_date", "price_reduction_factor_per_year"]]
tb["year"] = 2025
print(tb)
# Convert price_reduction_factor_per_year to float
tb["price_reduction_factor_per_year"] = tb["price_reduction_factor_per_year"].astype(float)

# Express price_reduction_factor_per_year in logarithmic scale
tb["price_reduction_factor_per_year_log"] = np.log(tb["price_reduction_factor_per_year"])
print(tb)

tb = tb.drop(columns=["end_date"])
tb = tb.format(["bench", "threshold_model", "year"])
Expand Down

0 comments on commit 3981b27

Please sign in to comment.