Skip to content

Commit

Permalink
Changing dedup logic to keep most recent entry
Browse files Browse the repository at this point in the history
  • Loading branch information
cityofcapetown-opm-bot committed Dec 18, 2024
1 parent 10cd4d4 commit 8e99aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cct_connector/ServiceAlertFixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def dedup_old_data(self):
self.data = pd.concat((
old_data, self.data
)).drop_duplicates(
subset=[ID_COL, ]
subset=[ID_COL,],
keep='last'
)
logging.debug(f" post dedup - {self.data.shape=}")

Expand Down

0 comments on commit 8e99aba

Please sign in to comment.