Skip to content

Commit

Permalink
closes #66
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed May 27, 2024
1 parent 5bad802 commit 553272e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions component_scope_kingfisher.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@
},
"source": [
"# Resample by month\n",
"release_dates = release_dates.set_index(\"date\")\n",
"release_dates = release_dates.groupby([\"collection_id\", \"release_type\"]).resample(\"M\").sum().reset_index()\n",
"release_dates['date'] = release_dates['date'].dt.strftime('%Y-%m')\n",
"release_dates = release_dates.groupby(['collection_id', 'release_type', 'date']).agg({'release_count': 'sum'}).reset_index()\n",
"\n",
"plot_releases_by_month(release_dates)"
],
Expand Down Expand Up @@ -430,4 +430,4 @@
"outputs": []
}
]
}
}

0 comments on commit 553272e

Please sign in to comment.