Skip to content

Commit

Permalink
drop duplicate values (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis authored Feb 20, 2024
1 parent f414a3a commit 7f67502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions safe_rcm/product/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def read_product(mapper, product_path):
default_dims=["stacked"],
),
lambda obj: obj.set_index({"stacked": ["pole", "pulse"]}),
lambda obj: obj.drop_duplicates("stacked", keep="last"),
lambda obj: obj.unstack("stacked"),
),
},
Expand Down

0 comments on commit 7f67502

Please sign in to comment.