Skip to content

Commit

Permalink
Fix rename error and add docs (#138)
Browse files Browse the repository at this point in the history
* Push fix and documentation

* Fix comment

* Update glue/flagging_script_glue/flagging.py

Co-authored-by: Jean Cochrane <[email protected]>

---------

Co-authored-by: Jean Cochrane <[email protected]>
  • Loading branch information
wagnerlmichael and jeancochrane authored Dec 16, 2024
1 parent d7e1b9c commit 2523e85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions glue/flagging_script_glue/flagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,8 @@ def get_sale_counts(dups: pd.DataFrame) -> pd.DataFrame:
df (pd.DataFrame): pandas dataframe
"""
v_counts = (
dups.pin.value_counts()
.reset_index()
.rename(columns={"count": "sv_sale_dup_counts"})
dups.pin.value_counts().reset_index(name="count")
.rename(columns={"index": "pin"})
)

dups = pd.merge(dups, v_counts)
Expand Down

0 comments on commit 2523e85

Please sign in to comment.