]> apps.delaporte.us Git - dotfiles.git/commitdiff
Cleanup unused code
authorEdward Delaporte <delaport@illinois.edu>
Fri, 16 Feb 2024 20:48:00 +0000 (14:48 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Fri, 16 Feb 2024 20:48:00 +0000 (14:48 -0600)
data/issues.ipynb

index 735326e771234919ff27dd251456e45fbfdf1a3c..3340aaf7fa1346863cb8dd42e539c3eb0c4719e5 100644 (file)
@@ -2,7 +2,25 @@
  "cells": [
   {
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": 5,
+   "metadata": {},
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "3.12.2\n"
+     ]
+    }
+   ],
+   "source": [
+    "import platform\n",
+    "print(platform.python_version())"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 92,
    "metadata": {},
    "outputs": [],
    "source": [
     "\tprint(f\"{file}\", os.path.getsize(file))\n"
    ]
   },
-  {
-   "cell_type": "code",
-   "execution_count": 5,
-   "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "3.12.2\n"
-     ]
-    }
-   ],
-   "source": [
-    "import platform\n",
-    "print(platform.python_version())"
-   ]
-  },
   {
    "cell_type": "code",
    "execution_count": null,
     "file = data_files[6]\n",
     "print(file)\n",
     "\n",
-    "f = open(file, encoding='utf-16')\n",
+    "f = open(file, encoding='utf-8')\n",
     "df = pd.read_json(f)"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 26,
-   "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "<class 'pandas._libs.tslibs.timestamps.Timestamp'>\n"
-     ]
-    }
-   ],
-   "source": [
-    "print(type(df.closed[0]))"
-   ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 94,
    "metadata": {},
    "outputs": [],
    "source": [
   },
   {
    "cell_type": "code",
-   "execution_count": null,
-   "metadata": {},
-   "outputs": [],
-   "source": [
-    "print(df.milestone[22].get('title'))"
-   ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": 68,
+   "execution_count": 95,
    "metadata": {},
    "outputs": [],
    "source": [
   },
   {
    "cell_type": "code",
-   "execution_count": 69,
+   "execution_count": 97,
    "metadata": {},
    "outputs": [],
    "source": [
   },
   {
    "cell_type": "code",
-   "execution_count": 39,
-   "metadata": {},
-   "outputs": [],
-   "source": [
-    "for_plot = df.groupby(df.closed.dt.month)['url'].count()"
-   ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": 70,
+   "execution_count": 98,
    "metadata": {},
    "outputs": [],
    "source": [
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "#### Plot of closed issues by month for one project\n"
-   ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "metadata": {},
-   "outputs": [],
-   "source": [
-    "for_plot.plot(kind='bar')"
+    "#### Plot of closed issues by month and milestone for one project\n"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 75,
+   "execution_count": 99,
    "metadata": {},
    "outputs": [],
    "source": [