Queer European MD passionate about IT
Browse Source

Additional Fix

Julie 5 years ago
parent
commit
63f442bf68
2 changed files with 38 additions and 37 deletions
  1. 36 36
      Mission294Solutions.ipynb
  2. 2 1
      Mission348Solutions.ipynb

+ 36 - 36
Mission294Solutions.ipynb

@@ -44,7 +44,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 1,
+   "execution_count": 14,
    "metadata": {},
    "metadata": {},
    "outputs": [],
    "outputs": [],
    "source": [
    "source": [
@@ -54,7 +54,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": 15,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -288,7 +288,7 @@
        "4       39218  2016-04-01 14:38:50  "
        "4       39218  2016-04-01 14:38:50  "
       ]
       ]
      },
      },
-     "execution_count": 2,
+     "execution_count": 15,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -352,7 +352,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 4,
+   "execution_count": 16,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -555,7 +555,7 @@
        "4  2016-04-01 14:38:50  "
        "4  2016-04-01 14:38:50  "
       ]
       ]
      },
      },
-     "execution_count": 4,
+     "execution_count": 16,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -680,7 +680,7 @@
        "    </tr>\n",
        "    </tr>\n",
        "    <tr>\n",
        "    <tr>\n",
        "      <th>top</th>\n",
        "      <th>top</th>\n",
-       "      <td>2016-03-08 10:40:35</td>\n",
+       "      <td>2016-03-09 11:54:38</td>\n",
        "      <td>Ford_Fiesta</td>\n",
        "      <td>Ford_Fiesta</td>\n",
        "      <td>privat</td>\n",
        "      <td>privat</td>\n",
        "      <td>Angebot</td>\n",
        "      <td>Angebot</td>\n",
@@ -893,7 +893,7 @@
        "               date_crawled         name  seller offer_type  price ab_test  \\\n",
        "               date_crawled         name  seller offer_type  price ab_test  \\\n",
        "count                 50000        50000   50000      50000  50000   50000   \n",
        "count                 50000        50000   50000      50000  50000   50000   \n",
        "unique                48213        38754       2          2   2357       2   \n",
        "unique                48213        38754       2          2   2357       2   \n",
-       "top     2016-03-08 10:40:35  Ford_Fiesta  privat    Angebot     $0    test   \n",
+       "top     2016-03-09 11:54:38  Ford_Fiesta  privat    Angebot     $0    test   \n",
        "freq                      3           78   49999      49999   1421   25756   \n",
        "freq                      3           78   49999      49999   1421   25756   \n",
        "mean                    NaN          NaN     NaN        NaN    NaN     NaN   \n",
        "mean                    NaN          NaN     NaN        NaN    NaN     NaN   \n",
        "std                     NaN          NaN     NaN        NaN    NaN     NaN   \n",
        "std                     NaN          NaN     NaN        NaN    NaN     NaN   \n",
@@ -994,7 +994,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 17,
    "metadata": {},
    "metadata": {},
    "outputs": [],
    "outputs": [],
    "source": [
    "source": [
@@ -1010,7 +1010,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 8,
+   "execution_count": 18,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1024,7 +1024,7 @@
        "Name: price, dtype: int64"
        "Name: price, dtype: int64"
       ]
       ]
      },
      },
-     "execution_count": 8,
+     "execution_count": 18,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1040,7 +1040,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 9,
+   "execution_count": 19,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1054,7 +1054,7 @@
        "Name: odometer_km, dtype: int64"
        "Name: odometer_km, dtype: int64"
       ]
       ]
      },
      },
-     "execution_count": 9,
+     "execution_count": 19,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1275,7 +1275,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 14,
+   "execution_count": 20,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1292,7 +1292,7 @@
        "Name: price, dtype: float64"
        "Name: price, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 14,
+     "execution_count": 20,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1328,7 +1328,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 15,
+   "execution_count": 28,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1401,7 +1401,7 @@
        "4  2016-04-01 14:38:50  2016-04-01 00:00:00  2016-04-01 14:38:50"
        "4  2016-04-01 14:38:50  2016-04-01 00:00:00  2016-04-01 14:38:50"
       ]
       ]
      },
      },
-     "execution_count": 15,
+     "execution_count": 28,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1412,7 +1412,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 16,
+   "execution_count": 21,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1455,7 +1455,7 @@
        "Name: date_crawled, dtype: float64"
        "Name: date_crawled, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 16,
+     "execution_count": 21,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1470,7 +1470,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 17,
+   "execution_count": 29,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1513,7 +1513,7 @@
        "Name: date_crawled, dtype: float64"
        "Name: date_crawled, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 17,
+     "execution_count": 29,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1535,7 +1535,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 18,
+   "execution_count": 150,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1578,7 +1578,7 @@
        "Name: last_seen, dtype: float64"
        "Name: last_seen, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 18,
+     "execution_count": 150,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1602,7 +1602,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 19,
+   "execution_count": 33,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1679,7 +1679,7 @@
        "Name: ad_created, Length: 76, dtype: float64"
        "Name: ad_created, Length: 76, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 19,
+     "execution_count": 33,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1702,7 +1702,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 20,
+   "execution_count": 34,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1719,7 +1719,7 @@
        "Name: registration_year, dtype: float64"
        "Name: registration_year, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 20,
+     "execution_count": 34,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1753,16 +1753,16 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 21,
+   "execution_count": 35,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
      "data": {
      "data": {
       "text/plain": [
       "text/plain": [
-       "0.038793369710697"
+       "0.038793369710697002"
       ]
       ]
      },
      },
-     "execution_count": 21,
+     "execution_count": 35,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1827,7 +1827,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 23,
+   "execution_count": 48,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1876,7 +1876,7 @@
        "Name: brand, dtype: float64"
        "Name: brand, dtype: float64"
       ]
       ]
      },
      },
-     "execution_count": 23,
+     "execution_count": 48,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1896,7 +1896,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 24,
+   "execution_count": 23,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1915,7 +1915,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 33,
+   "execution_count": 24,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -1929,7 +1929,7 @@
        " 'volkswagen': 5402}"
        " 'volkswagen': 5402}"
       ]
       ]
      },
      },
-     "execution_count": 33,
+     "execution_count": 24,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }
@@ -1965,7 +1965,7 @@
   },
   },
   {
   {
    "cell_type": "code",
    "cell_type": "code",
-   "execution_count": 37,
+   "execution_count": 26,
    "metadata": {},
    "metadata": {},
    "outputs": [
    "outputs": [
     {
     {
@@ -2031,7 +2031,7 @@
        "volkswagen           5402"
        "volkswagen           5402"
       ]
       ]
      },
      },
-     "execution_count": 37,
+     "execution_count": 26,
      "metadata": {},
      "metadata": {},
      "output_type": "execute_result"
      "output_type": "execute_result"
     }
     }

+ 2 - 1
Mission348Solutions.ipynb

@@ -2309,7 +2309,8 @@
     "mapping = {'Record ID': 'id', 'CESSATION YEAR': 'cease_date', 'Reason for ceasing employment': 'separationtype', 'Gender. What is your Gender?': 'gender', 'CurrentAge. Current Age': 'age',\n",
     "mapping = {'Record ID': 'id', 'CESSATION YEAR': 'cease_date', 'Reason for ceasing employment': 'separationtype', 'Gender. What is your Gender?': 'gender', 'CurrentAge. Current Age': 'age',\n",
     "       'Employment Type. Employment Type': 'employment_status',\n",
     "       'Employment Type. Employment Type': 'employment_status',\n",
     "       'Classification. Classification': 'position',\n",
     "       'Classification. Classification': 'position',\n",
-    "       'LengthofServiceOverall. Overall Length of Service at Institute (in years)': 'institute_service'}\n",
+    "       'LengthofServiceOverall. Overall Length of Service at Institute (in years)': 'institute_service',\n",
+    "       'LengthofServiceCurrent. Length of Service at current workplace (in years)': 'role_service'}\n",
     "tafe_survey_updated = tafe_survey_updated.rename(mapping, axis = 1)\n",
     "tafe_survey_updated = tafe_survey_updated.rename(mapping, axis = 1)\n",
     "\n",
     "\n",
     "# Check that the specified column names were updated correctly\n",
     "# Check that the specified column names were updated correctly\n",