File size: 18,329 Bytes
7a10530
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import scipy.io as sio\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "# Load the .mat file\n",
    "mat_contents = sio.loadmat('mill.mat')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[1]], dtype=uint8)"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "idx = 0\n",
    "np.assdata[0][idx][1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'numpy.ndarray'>\n",
      "(1, 167)\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>case</th>\n",
       "      <th>run</th>\n",
       "      <th>VB</th>\n",
       "      <th>time</th>\n",
       "      <th>DOC</th>\n",
       "      <th>feed</th>\n",
       "      <th>material</th>\n",
       "      <th>smcAC</th>\n",
       "      <th>smcDC</th>\n",
       "      <th>vib_table</th>\n",
       "      <th>vib_spindle</th>\n",
       "      <th>AE_table</th>\n",
       "      <th>AE_spindle</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>1</td>\n",
       "      <td>[-0.01708984375, 0.263671875, 0.20751953125, 0...</td>\n",
       "      <td>[0.625, 0.810546875, 0.78125, 0.849609375, 1.0...</td>\n",
       "      <td>[0.078125, 0.08544921875, 0.078125, 0.07324218...</td>\n",
       "      <td>[0.31494140625, 0.301513671875, 0.303955078125...</td>\n",
       "      <td>[0.0872802734375, 0.0982666015625, 0.092163085...</td>\n",
       "      <td>[0.103759765625, 0.123291015625, 0.10498046875...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>1</td>\n",
       "      <td>[0.3076171875, 0.3125, 0.1953125, 0.1879882812...</td>\n",
       "      <td>[0.6689453125, 0.6787109375, 0.859375, 1.12304...</td>\n",
       "      <td>[0.07568359375, 0.08056640625, 0.078125, 0.080...</td>\n",
       "      <td>[0.301513671875, 0.308837890625, 0.29907226562...</td>\n",
       "      <td>[0.086669921875, 0.0897216796875, 0.0946044921...</td>\n",
       "      <td>[0.0994873046875, 0.103759765625, 0.1080322265...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>1</td>\n",
       "      <td>[-0.72509765625, -0.71533203125, -0.5297851562...</td>\n",
       "      <td>[0.9130859375, 0.8349609375, 0.908203125, 1.15...</td>\n",
       "      <td>[0.0830078125, 0.078125, 0.09033203125, 0.0805...</td>\n",
       "      <td>[0.29541015625, 0.296630859375, 0.29296875, 0....</td>\n",
       "      <td>[0.0927734375, 0.1007080078125, 0.093383789062...</td>\n",
       "      <td>[0.10498046875, 0.1190185546875, 0.10986328125...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>0.11</td>\n",
       "      <td>7</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>1</td>\n",
       "      <td>[0.1123046875, 0.009765625, -0.1513671875, -0....</td>\n",
       "      <td>[0.1318359375, 0.3955078125, 0.7568359375, 0.8...</td>\n",
       "      <td>[0.0830078125, 0.07568359375, 0.06591796875, 0...</td>\n",
       "      <td>[0.316162109375, 0.311279296875, 0.302734375, ...</td>\n",
       "      <td>[0.1129150390625, 0.0994873046875, 0.104980468...</td>\n",
       "      <td>[0.1397705078125, 0.1214599609375, 0.124511718...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1</td>\n",
       "      <td>5</td>\n",
       "      <td>NaN</td>\n",
       "      <td>11</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>1</td>\n",
       "      <td>[-0.1220703125, -0.16357421875, -0.36865234375...</td>\n",
       "      <td>[0.44921875, 0.6640625, 0.6689453125, 0.747070...</td>\n",
       "      <td>[0.107421875, 0.107421875, 0.1025390625, 0.100...</td>\n",
       "      <td>[0.284423828125, 0.289306640625, 0.28442382812...</td>\n",
       "      <td>[0.0958251953125, 0.09765625, 0.09765625, 0.09...</td>\n",
       "      <td>[0.1104736328125, 0.113525390625, 0.1098632812...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>162</th>\n",
       "      <td>16</td>\n",
       "      <td>2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>2</td>\n",
       "      <td>[-0.58349609375, -0.5810546875, -0.51513671875...</td>\n",
       "      <td>[1.30859375, 1.318359375, 1.3330078125, 1.3427...</td>\n",
       "      <td>[0.0634765625, 0.0732421875, 0.06591796875, 0....</td>\n",
       "      <td>[0.330810546875, 0.299072265625, 0.3173828125,...</td>\n",
       "      <td>[0.093994140625, 0.0897216796875, 0.0982666015...</td>\n",
       "      <td>[0.1092529296875, 0.1025390625, 0.116577148437...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>163</th>\n",
       "      <td>16</td>\n",
       "      <td>3</td>\n",
       "      <td>0.24</td>\n",
       "      <td>3</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>2</td>\n",
       "      <td>[-0.2001953125, -0.009765625, 0.0830078125, 0....</td>\n",
       "      <td>[1.40625, 1.4013671875, 1.396484375, 1.3867187...</td>\n",
       "      <td>[0.06591796875, 0.07080078125, 0.0634765625, 0...</td>\n",
       "      <td>[0.279541015625, 0.284423828125, 0.30151367187...</td>\n",
       "      <td>[0.11474609375, 0.09521484375, 0.1019287109375...</td>\n",
       "      <td>[0.1397705078125, 0.1123046875, 0.120239257812...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>164</th>\n",
       "      <td>16</td>\n",
       "      <td>4</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>2</td>\n",
       "      <td>[0.244140625, 0.244140625, 0.205078125, 0.1562...</td>\n",
       "      <td>[1.328125, 1.3330078125, 1.3330078125, 1.33300...</td>\n",
       "      <td>[0.0634765625, 0.05859375, 0.05859375, 0.06347...</td>\n",
       "      <td>[0.29052734375, 0.279541015625, 0.28564453125,...</td>\n",
       "      <td>[0.101318359375, 0.1214599609375, 0.1220703125...</td>\n",
       "      <td>[0.1177978515625, 0.140380859375, 0.1428222656...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>16</td>\n",
       "      <td>5</td>\n",
       "      <td>0.40</td>\n",
       "      <td>6</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>2</td>\n",
       "      <td>[-0.205078125, -0.2392578125, -0.15625, 0.1269...</td>\n",
       "      <td>[1.3818359375, 1.38671875, 1.38671875, 1.38183...</td>\n",
       "      <td>[0.068359375, 0.05859375, 0.07080078125, 0.065...</td>\n",
       "      <td>[0.289306640625, 0.30029296875, 0.291748046875...</td>\n",
       "      <td>[0.098876953125, 0.096435546875, 0.08972167968...</td>\n",
       "      <td>[0.11474609375, 0.1123046875, 0.1068115234375,...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>16</td>\n",
       "      <td>6</td>\n",
       "      <td>0.62</td>\n",
       "      <td>9</td>\n",
       "      <td>1.5</td>\n",
       "      <td>0.5</td>\n",
       "      <td>2</td>\n",
       "      <td>[-0.380859375, -0.244140625, -0.13671875, -0.0...</td>\n",
       "      <td>[1.3818359375, 1.3916015625, 1.396484375, 1.39...</td>\n",
       "      <td>[0.04150390625, 0.04150390625, 0.04150390625, ...</td>\n",
       "      <td>[0.29296875, 0.30517578125, 0.28564453125, 0.3...</td>\n",
       "      <td>[0.07568359375, 0.087890625, 0.0750732421875, ...</td>\n",
       "      <td>[0.0830078125, 0.096435546875, 0.0762939453125...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>167 rows × 13 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     case  run    VB  time  DOC  feed  material  \\\n",
       "0       1    1  0.00     2  1.5   0.5         1   \n",
       "1       1    2   NaN     4  1.5   0.5         1   \n",
       "2       1    3   NaN     6  1.5   0.5         1   \n",
       "3       1    4  0.11     7  1.5   0.5         1   \n",
       "4       1    5   NaN    11  1.5   0.5         1   \n",
       "..    ...  ...   ...   ...  ...   ...       ...   \n",
       "162    16    2   NaN     2  1.5   0.5         2   \n",
       "163    16    3  0.24     3  1.5   0.5         2   \n",
       "164    16    4   NaN     4  1.5   0.5         2   \n",
       "165    16    5  0.40     6  1.5   0.5         2   \n",
       "166    16    6  0.62     9  1.5   0.5         2   \n",
       "\n",
       "                                                 smcAC  \\\n",
       "0    [-0.01708984375, 0.263671875, 0.20751953125, 0...   \n",
       "1    [0.3076171875, 0.3125, 0.1953125, 0.1879882812...   \n",
       "2    [-0.72509765625, -0.71533203125, -0.5297851562...   \n",
       "3    [0.1123046875, 0.009765625, -0.1513671875, -0....   \n",
       "4    [-0.1220703125, -0.16357421875, -0.36865234375...   \n",
       "..                                                 ...   \n",
       "162  [-0.58349609375, -0.5810546875, -0.51513671875...   \n",
       "163  [-0.2001953125, -0.009765625, 0.0830078125, 0....   \n",
       "164  [0.244140625, 0.244140625, 0.205078125, 0.1562...   \n",
       "165  [-0.205078125, -0.2392578125, -0.15625, 0.1269...   \n",
       "166  [-0.380859375, -0.244140625, -0.13671875, -0.0...   \n",
       "\n",
       "                                                 smcDC  \\\n",
       "0    [0.625, 0.810546875, 0.78125, 0.849609375, 1.0...   \n",
       "1    [0.6689453125, 0.6787109375, 0.859375, 1.12304...   \n",
       "2    [0.9130859375, 0.8349609375, 0.908203125, 1.15...   \n",
       "3    [0.1318359375, 0.3955078125, 0.7568359375, 0.8...   \n",
       "4    [0.44921875, 0.6640625, 0.6689453125, 0.747070...   \n",
       "..                                                 ...   \n",
       "162  [1.30859375, 1.318359375, 1.3330078125, 1.3427...   \n",
       "163  [1.40625, 1.4013671875, 1.396484375, 1.3867187...   \n",
       "164  [1.328125, 1.3330078125, 1.3330078125, 1.33300...   \n",
       "165  [1.3818359375, 1.38671875, 1.38671875, 1.38183...   \n",
       "166  [1.3818359375, 1.3916015625, 1.396484375, 1.39...   \n",
       "\n",
       "                                             vib_table  \\\n",
       "0    [0.078125, 0.08544921875, 0.078125, 0.07324218...   \n",
       "1    [0.07568359375, 0.08056640625, 0.078125, 0.080...   \n",
       "2    [0.0830078125, 0.078125, 0.09033203125, 0.0805...   \n",
       "3    [0.0830078125, 0.07568359375, 0.06591796875, 0...   \n",
       "4    [0.107421875, 0.107421875, 0.1025390625, 0.100...   \n",
       "..                                                 ...   \n",
       "162  [0.0634765625, 0.0732421875, 0.06591796875, 0....   \n",
       "163  [0.06591796875, 0.07080078125, 0.0634765625, 0...   \n",
       "164  [0.0634765625, 0.05859375, 0.05859375, 0.06347...   \n",
       "165  [0.068359375, 0.05859375, 0.07080078125, 0.065...   \n",
       "166  [0.04150390625, 0.04150390625, 0.04150390625, ...   \n",
       "\n",
       "                                           vib_spindle  \\\n",
       "0    [0.31494140625, 0.301513671875, 0.303955078125...   \n",
       "1    [0.301513671875, 0.308837890625, 0.29907226562...   \n",
       "2    [0.29541015625, 0.296630859375, 0.29296875, 0....   \n",
       "3    [0.316162109375, 0.311279296875, 0.302734375, ...   \n",
       "4    [0.284423828125, 0.289306640625, 0.28442382812...   \n",
       "..                                                 ...   \n",
       "162  [0.330810546875, 0.299072265625, 0.3173828125,...   \n",
       "163  [0.279541015625, 0.284423828125, 0.30151367187...   \n",
       "164  [0.29052734375, 0.279541015625, 0.28564453125,...   \n",
       "165  [0.289306640625, 0.30029296875, 0.291748046875...   \n",
       "166  [0.29296875, 0.30517578125, 0.28564453125, 0.3...   \n",
       "\n",
       "                                              AE_table  \\\n",
       "0    [0.0872802734375, 0.0982666015625, 0.092163085...   \n",
       "1    [0.086669921875, 0.0897216796875, 0.0946044921...   \n",
       "2    [0.0927734375, 0.1007080078125, 0.093383789062...   \n",
       "3    [0.1129150390625, 0.0994873046875, 0.104980468...   \n",
       "4    [0.0958251953125, 0.09765625, 0.09765625, 0.09...   \n",
       "..                                                 ...   \n",
       "162  [0.093994140625, 0.0897216796875, 0.0982666015...   \n",
       "163  [0.11474609375, 0.09521484375, 0.1019287109375...   \n",
       "164  [0.101318359375, 0.1214599609375, 0.1220703125...   \n",
       "165  [0.098876953125, 0.096435546875, 0.08972167968...   \n",
       "166  [0.07568359375, 0.087890625, 0.0750732421875, ...   \n",
       "\n",
       "                                            AE_spindle  \n",
       "0    [0.103759765625, 0.123291015625, 0.10498046875...  \n",
       "1    [0.0994873046875, 0.103759765625, 0.1080322265...  \n",
       "2    [0.10498046875, 0.1190185546875, 0.10986328125...  \n",
       "3    [0.1397705078125, 0.1214599609375, 0.124511718...  \n",
       "4    [0.1104736328125, 0.113525390625, 0.1098632812...  \n",
       "..                                                 ...  \n",
       "162  [0.1092529296875, 0.1025390625, 0.116577148437...  \n",
       "163  [0.1397705078125, 0.1123046875, 0.120239257812...  \n",
       "164  [0.1177978515625, 0.140380859375, 0.1428222656...  \n",
       "165  [0.11474609375, 0.1123046875, 0.1068115234375,...  \n",
       "166  [0.0830078125, 0.096435546875, 0.0762939453125...  \n",
       "\n",
       "[167 rows x 13 columns]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "mat_contents.keys()\n",
    "data=mat_contents['mill']\n",
    "print(type(data))\n",
    "print(data.shape)\n",
    "df= pd.DataFrame(data[0])\n",
    "\n",
    "for c in [\"case\",\"run\",\"VB\",\"time\",\"DOC\",\"feed\",\"material\"]:\n",
    "    df[c] = df[c].apply(lambda x: x.item())\n",
    "\n",
    "for c in [\"smcAC\",\"smcDC\",\"vib_table\",\"vib_spindle\",\"AE_table\",\"AE_spindle\"]:\n",
    "    df[c] = df[c].apply(lambda x: np.squeeze(x,1))\n",
    "\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       1\n",
       "1       1\n",
       "2       1\n",
       "3       1\n",
       "4       1\n",
       "       ..\n",
       "162    16\n",
       "163    16\n",
       "164    16\n",
       "165    16\n",
       "166    16\n",
       "Name: case, Length: 167, dtype: int64"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.to_parquet(\"data.parquet\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Export:\n",
    "df.to_json('mill/data.jsonl', orient='records', lines=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "NpzFile 'mill/data.npz' with keys: arr_0\n"
     ]
    }
   ],
   "source": [
    "# reading data from npz file \n",
    "data = np.load(\"mill/data.npz\")\n",
    "with np.load('mill/data.npz') as data:\n",
    "\tprint(data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}