diff --git a/notebook/dashboard.ipynb b/notebook/dashboard.ipynb index c363226a..d1a8283c 100644 --- a/notebook/dashboard.ipynb +++ b/notebook/dashboard.ipynb @@ -295,20 +295,10 @@ }, "source": [ "# Open Issues\n", - "\n", - "# Calculate the count of issues for each repository\n", - "df_repos.loc[:, 'issue_count'] = df_repos['issues'].apply(len)\n", - "\n", - "# Sort by issue count in descending order\n", - "df_issues = df_repos.sort_values(\n", - " by='issue_count',\n", - " ascending=False,\n", - ")\n", - "\n", - "# Calculate the log of issue count\n", - "df_issues.loc[:, 'log_issues'] = np.log1p(df_issues['issue_count'])\n", - "\n", - "# Visualize data using a bar chart\n", + "df_issues = df_repos.copy()\n", + "df_issues['issue_count'] = df_issues['issues'].apply(len)\n", + "df_issues = df_issues.sort_values(by='issue_count', ascending=False)\n", + "df_issues['log_issues'] = np.log1p(df_issues['issue_count'])\n", "fig = px.bar(\n", " df_issues,\n", " x='repo',\n",