Skip to content

Commit

Permalink
poetry: updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed Feb 18, 2022
1 parent d21922a commit 04de645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bender/transformation/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def __init__(self, key: str, per: str, output: str) -> None:
async def transform(self, df: DataFrame) -> DataFrame:
mask = df[self.value_key].isna() | df[self.per_key].isna() | df[self.per_key] == 0
df.loc[mask, self.output_key] = np.nan
df.loc[~mask, self.output_key] = df.loc[mask, self.value_key] / df.loc[mask, self.per_key]
df.loc[~mask, self.output_key] = df.loc[~mask, self.value_key] / df.loc[~mask, self.per_key]
return df


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "benderml"
version = "0.1.15"
version = "0.1.17"
description = "A Python package that makes ML processes easier, faster and less error prone"
authors = ["Mats E. Mollestad <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 04de645

Please sign in to comment.