]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - data/issues.ipynb
Add pie chart for combination of all data files
[dotfiles.git] / data / issues.ipynb
index 6a68c2a0633103d850adbd7563e40b552aff4a6a..b65e1d7ca7d2645bdf35ceea09191beef3e8ab83 100644 (file)
    "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)"
    ]
   },
   {
     "\n"
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "#### Pie Chart"
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": null,
     "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,
     "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,