Skip to content

Commit

Permalink
fix: setting with copy warning (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Aug 19, 2024
1 parent efb79ff commit 87154d2
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions notebook/dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 87154d2

Please sign in to comment.