Skip to content

Commit

Permalink
remove negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
j-beastman committed Jun 20, 2024
1 parent b6df269 commit 4a0135c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def create_or_update_modeling_dataset(modeling_dataset_name: str, #TODO: change

staging_data.fillna(0, inplace=True)

staging_data = staging_data["viewDiff"].apply(lambda x: max(x, 0))

dataset = dr.Dataset.create_version_from_in_memory_data(modeling_dataset_id, staging_data)

return str(dataset.id)
Expand Down

0 comments on commit 4a0135c

Please sign in to comment.