Skip to content

Commit 4641110

Browse files
committed
Update GitCodeStats.from_nwb to avoid Pandas warnings due to API changes
1 parent b63665c commit 4641110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nwb_project_analytics/codestats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def from_nwb(
161161
if repo_startdate is not None:
162162
# Set all LOC values prior to the given date to 0
163163
for k in summary_stats.keys():
164-
summary_stats[k][repo_key][:repo_startdate] = 0
164+
summary_stats[k].loc[:repo_startdate, repo_key] = 0
165165
# also update the per-language stats for the repo
166166
datemask = (per_repo_lang_stats[repo_key].index < repo_startdate)
167167
per_repo_lang_stats[repo_key].loc[datemask] = 0

0 commit comments

Comments
 (0)