Skip to content

Commit 4425ab3

Browse files
authored
Update cumulative.py (#42)
1 parent e20a5fd commit 4425ab3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/clone-tracking/cumulative.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def main(folder):
1717
repo_name = repo_name.replace("_", "/", 1)
1818
df = pd.read_csv(file_, index_col="date")
1919
df = df.rename({"clone_count": repo_name}, axis=1)
20+
# Drop duplicate index rows, retaining the highest clone count.
21+
df = df.loc[~df.index.duplicated(keep="first")]
2022
dfs.append(df)
2123

2224
# Concatenate all repo-wise cumulative stats into a single DataFrame

0 commit comments

Comments
 (0)