|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": 1, |
| 6 | + "id": "11813bfa", |
| 7 | + "metadata": { |
| 8 | + "_cell_guid": "b1076dfc-b9ad-4769-8c92-a6c4dae69d19", |
| 9 | + "_uuid": "8f2839f25d086af736a60e9eeb907d3b93b6e0e5", |
| 10 | + "execution": { |
| 11 | + "iopub.execute_input": "2024-05-22T21:47:18.276302Z", |
| 12 | + "iopub.status.busy": "2024-05-22T21:47:18.274613Z", |
| 13 | + "iopub.status.idle": "2024-05-22T21:47:19.226594Z", |
| 14 | + "shell.execute_reply": "2024-05-22T21:47:19.224387Z" |
| 15 | + }, |
| 16 | + "papermill": { |
| 17 | + "duration": 0.961065, |
| 18 | + "end_time": "2024-05-22T21:47:19.231089", |
| 19 | + "exception": false, |
| 20 | + "start_time": "2024-05-22T21:47:18.270024", |
| 21 | + "status": "completed" |
| 22 | + }, |
| 23 | + "tags": [] |
| 24 | + }, |
| 25 | + "outputs": [ |
| 26 | + { |
| 27 | + "name": "stdout", |
| 28 | + "output_type": "stream", |
| 29 | + "text": [ |
| 30 | + "/kaggle/input/pump-sensor-data/sensor.csv\n" |
| 31 | + ] |
| 32 | + } |
| 33 | + ], |
| 34 | + "source": [ |
| 35 | + "# This Python 3 environment comes with many helpful analytics libraries installed\n", |
| 36 | + "# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n", |
| 37 | + "# For example, here's several helpful packages to load\n", |
| 38 | + "\n", |
| 39 | + "import numpy as np # linear algebra\n", |
| 40 | + "import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n", |
| 41 | + "\n", |
| 42 | + "# Input data files are available in the read-only \"../input/\" directory\n", |
| 43 | + "# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n", |
| 44 | + "\n", |
| 45 | + "import os\n", |
| 46 | + "for dirname, _, filenames in os.walk('/kaggle/input'):\n", |
| 47 | + " for filename in filenames:\n", |
| 48 | + " print(os.path.join(dirname, filename))\n", |
| 49 | + "\n", |
| 50 | + "# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n", |
| 51 | + "# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session" |
| 52 | + ] |
| 53 | + }, |
| 54 | + { |
| 55 | + "cell_type": "code", |
| 56 | + "execution_count": 2, |
| 57 | + "id": "1526b0e5", |
| 58 | + "metadata": { |
| 59 | + "execution": { |
| 60 | + "iopub.execute_input": "2024-05-22T21:47:19.237919Z", |
| 61 | + "iopub.status.busy": "2024-05-22T21:47:19.237144Z", |
| 62 | + "iopub.status.idle": "2024-05-22T21:47:23.435341Z", |
| 63 | + "shell.execute_reply": "2024-05-22T21:47:23.434156Z" |
| 64 | + }, |
| 65 | + "papermill": { |
| 66 | + "duration": 4.205566, |
| 67 | + "end_time": "2024-05-22T21:47:23.439119", |
| 68 | + "exception": false, |
| 69 | + "start_time": "2024-05-22T21:47:19.233553", |
| 70 | + "status": "completed" |
| 71 | + }, |
| 72 | + "tags": [] |
| 73 | + }, |
| 74 | + "outputs": [ |
| 75 | + { |
| 76 | + "data": { |
| 77 | + "text/html": [ |
| 78 | + "<div>\n", |
| 79 | + "<style scoped>\n", |
| 80 | + " .dataframe tbody tr th:only-of-type {\n", |
| 81 | + " vertical-align: middle;\n", |
| 82 | + " }\n", |
| 83 | + "\n", |
| 84 | + " .dataframe tbody tr th {\n", |
| 85 | + " vertical-align: top;\n", |
| 86 | + " }\n", |
| 87 | + "\n", |
| 88 | + " .dataframe thead th {\n", |
| 89 | + " text-align: right;\n", |
| 90 | + " }\n", |
| 91 | + "</style>\n", |
| 92 | + "<table border=\"1\" class=\"dataframe\">\n", |
| 93 | + " <thead>\n", |
| 94 | + " <tr style=\"text-align: right;\">\n", |
| 95 | + " <th></th>\n", |
| 96 | + " <th>Unnamed: 0</th>\n", |
| 97 | + " <th>timestamp</th>\n", |
| 98 | + " <th>sensor_00</th>\n", |
| 99 | + " <th>sensor_01</th>\n", |
| 100 | + " <th>sensor_02</th>\n", |
| 101 | + " <th>sensor_03</th>\n", |
| 102 | + " <th>sensor_04</th>\n", |
| 103 | + " <th>sensor_05</th>\n", |
| 104 | + " <th>sensor_06</th>\n", |
| 105 | + " <th>sensor_07</th>\n", |
| 106 | + " <th>...</th>\n", |
| 107 | + " <th>sensor_43</th>\n", |
| 108 | + " <th>sensor_44</th>\n", |
| 109 | + " <th>sensor_45</th>\n", |
| 110 | + " <th>sensor_46</th>\n", |
| 111 | + " <th>sensor_47</th>\n", |
| 112 | + " <th>sensor_48</th>\n", |
| 113 | + " <th>sensor_49</th>\n", |
| 114 | + " <th>sensor_50</th>\n", |
| 115 | + " <th>sensor_51</th>\n", |
| 116 | + " <th>machine_status</th>\n", |
| 117 | + " </tr>\n", |
| 118 | + " </thead>\n", |
| 119 | + " <tbody>\n", |
| 120 | + " <tr>\n", |
| 121 | + " <th>0</th>\n", |
| 122 | + " <td>0</td>\n", |
| 123 | + " <td>2018-04-01 00:00:00</td>\n", |
| 124 | + " <td>2.465394</td>\n", |
| 125 | + " <td>47.09201</td>\n", |
| 126 | + " <td>53.2118</td>\n", |
| 127 | + " <td>46.310760</td>\n", |
| 128 | + " <td>634.3750</td>\n", |
| 129 | + " <td>76.45975</td>\n", |
| 130 | + " <td>13.41146</td>\n", |
| 131 | + " <td>16.13136</td>\n", |
| 132 | + " <td>...</td>\n", |
| 133 | + " <td>41.92708</td>\n", |
| 134 | + " <td>39.641200</td>\n", |
| 135 | + " <td>65.68287</td>\n", |
| 136 | + " <td>50.92593</td>\n", |
| 137 | + " <td>38.194440</td>\n", |
| 138 | + " <td>157.9861</td>\n", |
| 139 | + " <td>67.70834</td>\n", |
| 140 | + " <td>243.0556</td>\n", |
| 141 | + " <td>201.3889</td>\n", |
| 142 | + " <td>NORMAL</td>\n", |
| 143 | + " </tr>\n", |
| 144 | + " <tr>\n", |
| 145 | + " <th>1</th>\n", |
| 146 | + " <td>1</td>\n", |
| 147 | + " <td>2018-04-01 00:01:00</td>\n", |
| 148 | + " <td>2.465394</td>\n", |
| 149 | + " <td>47.09201</td>\n", |
| 150 | + " <td>53.2118</td>\n", |
| 151 | + " <td>46.310760</td>\n", |
| 152 | + " <td>634.3750</td>\n", |
| 153 | + " <td>76.45975</td>\n", |
| 154 | + " <td>13.41146</td>\n", |
| 155 | + " <td>16.13136</td>\n", |
| 156 | + " <td>...</td>\n", |
| 157 | + " <td>41.92708</td>\n", |
| 158 | + " <td>39.641200</td>\n", |
| 159 | + " <td>65.68287</td>\n", |
| 160 | + " <td>50.92593</td>\n", |
| 161 | + " <td>38.194440</td>\n", |
| 162 | + " <td>157.9861</td>\n", |
| 163 | + " <td>67.70834</td>\n", |
| 164 | + " <td>243.0556</td>\n", |
| 165 | + " <td>201.3889</td>\n", |
| 166 | + " <td>NORMAL</td>\n", |
| 167 | + " </tr>\n", |
| 168 | + " <tr>\n", |
| 169 | + " <th>2</th>\n", |
| 170 | + " <td>2</td>\n", |
| 171 | + " <td>2018-04-01 00:02:00</td>\n", |
| 172 | + " <td>2.444734</td>\n", |
| 173 | + " <td>47.35243</td>\n", |
| 174 | + " <td>53.2118</td>\n", |
| 175 | + " <td>46.397570</td>\n", |
| 176 | + " <td>638.8889</td>\n", |
| 177 | + " <td>73.54598</td>\n", |
| 178 | + " <td>13.32465</td>\n", |
| 179 | + " <td>16.03733</td>\n", |
| 180 | + " <td>...</td>\n", |
| 181 | + " <td>41.66666</td>\n", |
| 182 | + " <td>39.351852</td>\n", |
| 183 | + " <td>65.39352</td>\n", |
| 184 | + " <td>51.21528</td>\n", |
| 185 | + " <td>38.194443</td>\n", |
| 186 | + " <td>155.9606</td>\n", |
| 187 | + " <td>67.12963</td>\n", |
| 188 | + " <td>241.3194</td>\n", |
| 189 | + " <td>203.7037</td>\n", |
| 190 | + " <td>NORMAL</td>\n", |
| 191 | + " </tr>\n", |
| 192 | + " <tr>\n", |
| 193 | + " <th>3</th>\n", |
| 194 | + " <td>3</td>\n", |
| 195 | + " <td>2018-04-01 00:03:00</td>\n", |
| 196 | + " <td>2.460474</td>\n", |
| 197 | + " <td>47.09201</td>\n", |
| 198 | + " <td>53.1684</td>\n", |
| 199 | + " <td>46.397568</td>\n", |
| 200 | + " <td>628.1250</td>\n", |
| 201 | + " <td>76.98898</td>\n", |
| 202 | + " <td>13.31742</td>\n", |
| 203 | + " <td>16.24711</td>\n", |
| 204 | + " <td>...</td>\n", |
| 205 | + " <td>40.88541</td>\n", |
| 206 | + " <td>39.062500</td>\n", |
| 207 | + " <td>64.81481</td>\n", |
| 208 | + " <td>51.21528</td>\n", |
| 209 | + " <td>38.194440</td>\n", |
| 210 | + " <td>155.9606</td>\n", |
| 211 | + " <td>66.84028</td>\n", |
| 212 | + " <td>240.4514</td>\n", |
| 213 | + " <td>203.1250</td>\n", |
| 214 | + " <td>NORMAL</td>\n", |
| 215 | + " </tr>\n", |
| 216 | + " <tr>\n", |
| 217 | + " <th>4</th>\n", |
| 218 | + " <td>4</td>\n", |
| 219 | + " <td>2018-04-01 00:04:00</td>\n", |
| 220 | + " <td>2.445718</td>\n", |
| 221 | + " <td>47.13541</td>\n", |
| 222 | + " <td>53.2118</td>\n", |
| 223 | + " <td>46.397568</td>\n", |
| 224 | + " <td>636.4583</td>\n", |
| 225 | + " <td>76.58897</td>\n", |
| 226 | + " <td>13.35359</td>\n", |
| 227 | + " <td>16.21094</td>\n", |
| 228 | + " <td>...</td>\n", |
| 229 | + " <td>41.40625</td>\n", |
| 230 | + " <td>38.773150</td>\n", |
| 231 | + " <td>65.10416</td>\n", |
| 232 | + " <td>51.79398</td>\n", |
| 233 | + " <td>38.773150</td>\n", |
| 234 | + " <td>158.2755</td>\n", |
| 235 | + " <td>66.55093</td>\n", |
| 236 | + " <td>242.1875</td>\n", |
| 237 | + " <td>201.3889</td>\n", |
| 238 | + " <td>NORMAL</td>\n", |
| 239 | + " </tr>\n", |
| 240 | + " </tbody>\n", |
| 241 | + "</table>\n", |
| 242 | + "<p>5 rows × 55 columns</p>\n", |
| 243 | + "</div>" |
| 244 | + ], |
| 245 | + "text/plain": [ |
| 246 | + " Unnamed: 0 timestamp sensor_00 sensor_01 sensor_02 \\\n", |
| 247 | + "0 0 2018-04-01 00:00:00 2.465394 47.09201 53.2118 \n", |
| 248 | + "1 1 2018-04-01 00:01:00 2.465394 47.09201 53.2118 \n", |
| 249 | + "2 2 2018-04-01 00:02:00 2.444734 47.35243 53.2118 \n", |
| 250 | + "3 3 2018-04-01 00:03:00 2.460474 47.09201 53.1684 \n", |
| 251 | + "4 4 2018-04-01 00:04:00 2.445718 47.13541 53.2118 \n", |
| 252 | + "\n", |
| 253 | + " sensor_03 sensor_04 sensor_05 sensor_06 sensor_07 ... sensor_43 \\\n", |
| 254 | + "0 46.310760 634.3750 76.45975 13.41146 16.13136 ... 41.92708 \n", |
| 255 | + "1 46.310760 634.3750 76.45975 13.41146 16.13136 ... 41.92708 \n", |
| 256 | + "2 46.397570 638.8889 73.54598 13.32465 16.03733 ... 41.66666 \n", |
| 257 | + "3 46.397568 628.1250 76.98898 13.31742 16.24711 ... 40.88541 \n", |
| 258 | + "4 46.397568 636.4583 76.58897 13.35359 16.21094 ... 41.40625 \n", |
| 259 | + "\n", |
| 260 | + " sensor_44 sensor_45 sensor_46 sensor_47 sensor_48 sensor_49 \\\n", |
| 261 | + "0 39.641200 65.68287 50.92593 38.194440 157.9861 67.70834 \n", |
| 262 | + "1 39.641200 65.68287 50.92593 38.194440 157.9861 67.70834 \n", |
| 263 | + "2 39.351852 65.39352 51.21528 38.194443 155.9606 67.12963 \n", |
| 264 | + "3 39.062500 64.81481 51.21528 38.194440 155.9606 66.84028 \n", |
| 265 | + "4 38.773150 65.10416 51.79398 38.773150 158.2755 66.55093 \n", |
| 266 | + "\n", |
| 267 | + " sensor_50 sensor_51 machine_status \n", |
| 268 | + "0 243.0556 201.3889 NORMAL \n", |
| 269 | + "1 243.0556 201.3889 NORMAL \n", |
| 270 | + "2 241.3194 203.7037 NORMAL \n", |
| 271 | + "3 240.4514 203.1250 NORMAL \n", |
| 272 | + "4 242.1875 201.3889 NORMAL \n", |
| 273 | + "\n", |
| 274 | + "[5 rows x 55 columns]" |
| 275 | + ] |
| 276 | + }, |
| 277 | + "execution_count": 2, |
| 278 | + "metadata": {}, |
| 279 | + "output_type": "execute_result" |
| 280 | + } |
| 281 | + ], |
| 282 | + "source": [ |
| 283 | + "df = pd.read_csv('/kaggle/input/pump-sensor-data/sensor.csv')\n", |
| 284 | + "df.head()" |
| 285 | + ] |
| 286 | + } |
| 287 | + ], |
| 288 | + "metadata": { |
| 289 | + "kaggle": { |
| 290 | + "accelerator": "none", |
| 291 | + "dataSources": [ |
| 292 | + { |
| 293 | + "datasetId": 131138, |
| 294 | + "sourceId": 312855, |
| 295 | + "sourceType": "datasetVersion" |
| 296 | + } |
| 297 | + ], |
| 298 | + "dockerImageVersionId": 30698, |
| 299 | + "isGpuEnabled": false, |
| 300 | + "isInternetEnabled": false, |
| 301 | + "language": "python", |
| 302 | + "sourceType": "notebook" |
| 303 | + }, |
| 304 | + "kernelspec": { |
| 305 | + "display_name": "Python 3", |
| 306 | + "language": "python", |
| 307 | + "name": "python3" |
| 308 | + }, |
| 309 | + "language_info": { |
| 310 | + "codemirror_mode": { |
| 311 | + "name": "ipython", |
| 312 | + "version": 3 |
| 313 | + }, |
| 314 | + "file_extension": ".py", |
| 315 | + "mimetype": "text/x-python", |
| 316 | + "name": "python", |
| 317 | + "nbconvert_exporter": "python", |
| 318 | + "pygments_lexer": "ipython3", |
| 319 | + "version": "3.10.13" |
| 320 | + }, |
| 321 | + "papermill": { |
| 322 | + "default_parameters": {}, |
| 323 | + "duration": 8.911312, |
| 324 | + "end_time": "2024-05-22T21:47:23.962887", |
| 325 | + "environment_variables": {}, |
| 326 | + "exception": null, |
| 327 | + "input_path": "__notebook__.ipynb", |
| 328 | + "output_path": "__notebook__.ipynb", |
| 329 | + "parameters": {}, |
| 330 | + "start_time": "2024-05-22T21:47:15.051575", |
| 331 | + "version": "2.5.0" |
| 332 | + } |
| 333 | + }, |
| 334 | + "nbformat": 4, |
| 335 | + "nbformat_minor": 5 |
| 336 | +} |
0 commit comments