Skip to content

Commit

Permalink
I was accessing a sorted dataframe by index, but I forgot to reindex …
Browse files Browse the repository at this point in the history
…it, which was resulting in unexpected results in the trend for first response in the graph.
  • Loading branch information
geekygirldawn committed Dec 4, 2023
1 parent b455049 commit b0b546b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/first_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def response_time_data(repo_id, repo_name, org_name, start_date, end_date, engin

start_mo += relativedelta(months=1)

first_response = first_response.sort_values('yearmonth')
first_response = first_response.sort_values('yearmonth').reset_index(drop=True)

month_num = 0
six_months = str(datetime.date.today() + relativedelta(months=-7)) # 7 because we don't gather current partial month data
Expand Down

0 comments on commit b0b546b

Please sign in to comment.