We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63665c commit 4641110Copy full SHA for 4641110
src/nwb_project_analytics/codestats.py
@@ -161,7 +161,7 @@ def from_nwb(
161
if repo_startdate is not None:
162
# Set all LOC values prior to the given date to 0
163
for k in summary_stats.keys():
164
- summary_stats[k][repo_key][:repo_startdate] = 0
+ summary_stats[k].loc[:repo_startdate, repo_key] = 0
165
# also update the per-language stats for the repo
166
datemask = (per_repo_lang_stats[repo_key].index < repo_startdate)
167
per_repo_lang_stats[repo_key].loc[datemask] = 0
0 commit comments