X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/5e378f911e9d78734849e8bb51487e82de876245..5aa81a0ebcb6ea28bd78d22a23e6522c2dbc5713:/data/issues.ipynb diff --git a/data/issues.ipynb b/data/issues.ipynb index 6a68c2a..b65e1d7 100644 --- a/data/issues.ipynb +++ b/data/issues.ipynb @@ -43,13 +43,14 @@ "source": [ "import pandas as pd\n", "\n", - "data_sets = []\n", + "data_frames = []\n", + "for file in data_files:\n", "\n", - "file = data_files[6]\n", - "print(file)\n", + "\tf = open(file, encoding='utf-8')\n", + "\tdf_temp = pd.read_json(f)\n", + "\tdata_frames.append(df_temp)\n", "\n", - "f = open(file, encoding='utf-8')\n", - "df = pd.read_json(f)" + "df = pd.concat(data_frames, ignore_index=True)" ] }, { @@ -63,6 +64,13 @@ "\n" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Pie Chart" + ] + }, { "cell_type": "code", "execution_count": null, @@ -104,6 +112,13 @@ "plt.show()" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Plot of closed issues by month and milestone for one project\n" + ] + }, { "cell_type": "code", "execution_count": null, @@ -135,23 +150,6 @@ "dfg.drop(columns=['milestone', 'title', 'url'], inplace=True)\n" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "\n", - "print(dfg)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "#### Plot of closed issues by month and milestone for one project\n" - ] - }, { "cell_type": "code", "execution_count": null,