red_amber 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
  "id": "e355db8b-ebb6-4ea6-97b5-3b9fdadc302c",
6
6
  "metadata": {},
7
7
  "source": [
8
- "# 47 examples of Red Amber"
8
+ "# 53 examples of Red Amber"
9
9
  ]
10
10
  },
11
11
  {
@@ -13,7 +13,7 @@
13
13
  "id": "f20f4970-db38-4d96-9a36-d4cf9d007596",
14
14
  "metadata": {},
15
15
  "source": [
16
- "Last update: July 15, 2022 / RedAmber Version 0.1.7"
16
+ "Last update: August 3, 2022, for RedAmber Version 0.1.8"
17
17
  ]
18
18
  },
19
19
  {
@@ -72,7 +72,7 @@
72
72
  {
73
73
  "data": {
74
74
  "text/plain": [
75
- "\"0.1.7\""
75
+ "\"0.1.8-HEAD\""
76
76
  ]
77
77
  },
78
78
  "execution_count": 1,
@@ -108,7 +108,7 @@
108
108
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>A</td></tr><tr><td>2</td><td>B</td></tr><tr><td>3</td><td>C</td></tr></table>"
109
109
  ],
110
110
  "text/plain": [
111
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f85c>\n",
111
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f1cc>\n",
112
112
  " x y\n",
113
113
  " <uint8> <string>\n",
114
114
  "1 1 A\n",
@@ -138,7 +138,7 @@
138
138
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>A</td></tr><tr><td>2</td><td>B</td></tr><tr><td>3</td><td>C</td></tr></table>"
139
139
  ],
140
140
  "text/plain": [
141
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f870>\n",
141
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f1e0>\n",
142
142
  " x y\n",
143
143
  " <uint8> <string>\n",
144
144
  "1 1 A\n",
@@ -168,7 +168,7 @@
168
168
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>A</td></tr><tr><td>2</td><td>B</td></tr><tr><td>3</td><td>C</td></tr></table>"
169
169
  ],
170
170
  "text/plain": [
171
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f884>\n",
171
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f1f4>\n",
172
172
  " x y\n",
173
173
  " <uint8> <string>\n",
174
174
  "1 1 A\n",
@@ -199,7 +199,7 @@
199
199
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>A</td></tr><tr><td>2</td><td>B</td></tr><tr><td>3</td><td>C</td></tr></table>"
200
200
  ],
201
201
  "text/plain": [
202
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f898>\n",
202
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f208>\n",
203
203
  " x y\n",
204
204
  " <uint8> <string>\n",
205
205
  "1 1 A\n",
@@ -231,7 +231,7 @@
231
231
  "RedAmber::DataFrame <344 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
232
232
  ],
233
233
  "text/plain": [
234
- "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f8ac>\n",
234
+ "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f21c>\n",
235
235
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
236
236
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
237
237
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -281,7 +281,7 @@
281
281
  "RedAmber::DataFrame <32 x 11 vectors> <table><tr><th>mpg</th><th>cyl</th><th>disp</th><th>hp</th><th>drat</th><th>wt</th><th>qsec</th><th>vs</th><th>am</th><th>gear</th><th>carb</th></tr><tr><td>21.0</td><td>6</td><td>160.0</td><td>110</td><td>3.9</td><td>2.62</td><td>16.46</td><td>0</td><td>1</td><td>4</td><td>4</td></tr><tr><td>21.0</td><td>6</td><td>160.0</td><td>110</td><td>3.9</td><td>2.875</td><td>17.02</td><td>0</td><td>1</td><td>4</td><td>4</td></tr><tr><td>22.8</td><td>4</td><td>108.0</td><td>93</td><td>3.85</td><td>2.32</td><td>18.61</td><td>1</td><td>1</td><td>4</td><td>1</td></tr><tr><td>21.4</td><td>6</td><td>258.0</td><td>110</td><td>3.08</td><td>3.215</td><td>19.44</td><td>1</td><td>0</td><td>3</td><td>1</td></tr><tr><td colspan='11'>&#8942;</td></tr><tr><td>19.7</td><td>6</td><td>145.0</td><td>175</td><td>3.62</td><td>2.77</td><td>15.5</td><td>0</td><td>1</td><td>5</td><td>6</td></tr><tr><td>15.0</td><td>8</td><td>301.0</td><td>335</td><td>3.54</td><td>3.57</td><td>14.6</td><td>0</td><td>1</td><td>5</td><td>8</td></tr><tr><td>21.4</td><td>4</td><td>121.0</td><td>109</td><td>4.11</td><td>2.78</td><td>18.6</td><td>1</td><td>1</td><td>4</td><td>2</td></tr></table>"
282
282
  ],
283
283
  "text/plain": [
284
- "#<RedAmber::DataFrame : 32 x 11 Vectors, 0x000000000000f8c0>\n",
284
+ "#<RedAmber::DataFrame : 32 x 11 Vectors, 0x000000000000f230>\n",
285
285
  " mpg cyl disp hp drat wt qsec vs am ... carb\n",
286
286
  " <double> <uint8> <double> <uint16> <double> <double> <double> <uint8> <uint8> ... <uint8>\n",
287
287
  " 1 21.0 6 160.0 110 3.9 2.6 16.5 0 1 ... 4\n",
@@ -333,7 +333,7 @@
333
333
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>name</th><th>age</th></tr><tr><td>Yasuko</td><td>68</td></tr><tr><td>Rui</td><td>49</td></tr><tr><td>Hinata</td><td>28</td></tr></table>"
334
334
  ],
335
335
  "text/plain": [
336
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f8d4>\n",
336
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f244>\n",
337
337
  " name age\n",
338
338
  " <string> <int64>\n",
339
339
  "1 Yasuko 68\n",
@@ -370,7 +370,7 @@
370
370
  "RedAmber::DataFrame <344 x 7 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>MALE</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>FEMALE</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>FEMALE</td></tr><tr><td>Adelie</td><td>Torgersen</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td></td></tr><tr><td colspan='7'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>MALE</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>FEMALE</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>MALE</td></tr></table>"
371
371
  ],
372
372
  "text/plain": [
373
- "#<RedAmber::DataFrame : 344 x 7 Vectors, 0x000000000000f8e8>\n",
373
+ "#<RedAmber::DataFrame : 344 x 7 Vectors, 0x000000000000f258>\n",
374
374
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... sex\n",
375
375
  " <string> <string> <double> <double> <int64> ... <string>\n",
376
376
  " 1 Adelie Torgersen 39.1 18.7 181 ... MALE\n",
@@ -456,7 +456,7 @@
456
456
  "name": "stdout",
457
457
  "output_type": "stream",
458
458
  "text": [
459
- "#<RedAmber::DataFrame : 5 x 4 Vectors, 0x000000000000f8fc>\n",
459
+ "#<RedAmber::DataFrame : 5 x 4 Vectors, 0x000000000000f26c>\n",
460
460
  " x y s b\n",
461
461
  " <uint8> <double> <string> <boolean>\n",
462
462
  "1 1 1.0 A true\n",
@@ -487,7 +487,7 @@
487
487
  "name": "stdout",
488
488
  "output_type": "stream",
489
489
  "text": [
490
- "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f8ac>\n",
490
+ "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f21c>\n",
491
491
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
492
492
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
493
493
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -524,7 +524,7 @@
524
524
  {
525
525
  "data": {
526
526
  "text/plain": [
527
- "#<Arrow::Table:0x113637c20 ptr=0x7fcc504bb870>\n",
527
+ "#<Arrow::Table:0x7f8894884748 ptr=0x558436460680>\n",
528
528
  "\tx\t y\ts\tb\n",
529
529
  "0\t1\t 1.000000\tA\ttrue\n",
530
530
  "1\t2\t 2.000000\tB\tfalse\n",
@@ -551,7 +551,7 @@
551
551
  {
552
552
  "data": {
553
553
  "text/plain": [
554
- "#<Arrow::Table:0x10fcb7c20 ptr=0x7fcc5057dc70>\n",
554
+ "#<Arrow::Table:0x7f88948ea688 ptr=0x55843586f1a0>\n",
555
555
  "\tspecies\tisland\tbill_length_mm\tbill_depth_mm\tflipper_length_mm\tbody_mass_g\tsex\tyear\n",
556
556
  " 0\tAdelie \tTorgersen\t 39.100000\t 18.700000\t 181\t 3750\tmale\t2007\n",
557
557
  " 1\tAdelie \tTorgersen\t 39.500000\t 17.400000\t 186\t 3800\tfemale\t2007\n",
@@ -1276,7 +1276,7 @@
1276
1276
  {
1277
1277
  "data": {
1278
1278
  "text/plain": [
1279
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000f910>\n",
1279
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f280>\n",
1280
1280
  "[1, 2, 3, 4, 5]\n"
1281
1281
  ]
1282
1282
  },
@@ -1306,7 +1306,7 @@
1306
1306
  {
1307
1307
  "data": {
1308
1308
  "text/plain": [
1309
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000f924>\n",
1309
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f294>\n",
1310
1310
  "[1, 2, 3, 4, 5]\n"
1311
1311
  ]
1312
1312
  },
@@ -1328,7 +1328,7 @@
1328
1328
  {
1329
1329
  "data": {
1330
1330
  "text/plain": [
1331
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000f938>\n",
1331
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f2a8>\n",
1332
1332
  "[1, 2, 3, 4, 5]\n"
1333
1333
  ]
1334
1334
  },
@@ -1350,7 +1350,7 @@
1350
1350
  {
1351
1351
  "data": {
1352
1352
  "text/plain": [
1353
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000f94c>\n",
1353
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f2bc>\n",
1354
1354
  "[1, 2, 3, 4, 5]\n"
1355
1355
  ]
1356
1356
  },
@@ -1372,7 +1372,7 @@
1372
1372
  {
1373
1373
  "data": {
1374
1374
  "text/plain": [
1375
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000f960>\n",
1375
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f2d0>\n",
1376
1376
  "[1, 2, 3, 4, 5]\n"
1377
1377
  ]
1378
1378
  },
@@ -1419,13 +1419,13 @@
1419
1419
  {
1420
1420
  "data": {
1421
1421
  "text/plain": [
1422
- "[#<RedAmber::Vector(:uint8, size=5):0x000000000000f910>\n",
1422
+ "[#<RedAmber::Vector(:uint8, size=5):0x000000000000f280>\n",
1423
1423
  "[1, 2, 3, 4, 5]\n",
1424
- ", #<RedAmber::Vector(:double, size=5):0x000000000000f974>\n",
1424
+ ", #<RedAmber::Vector(:double, size=5):0x000000000000f2e4>\n",
1425
1425
  "[1.0, 2.0, 3.0, NaN, nil]\n",
1426
- ", #<RedAmber::Vector(:string, size=5):0x000000000000f988>\n",
1426
+ ", #<RedAmber::Vector(:string, size=5):0x000000000000f2f8>\n",
1427
1427
  "[\"A\", \"B\", \"C\", \"D\", nil]\n",
1428
- ", #<RedAmber::Vector(:boolean, size=5):0x000000000000f99c>\n",
1428
+ ", #<RedAmber::Vector(:boolean, size=5):0x000000000000f30c>\n",
1429
1429
  "[true, false, true, false, nil]\n",
1430
1430
  "]"
1431
1431
  ]
@@ -1460,13 +1460,13 @@
1460
1460
  {
1461
1461
  "data": {
1462
1462
  "text/plain": [
1463
- "{:x=>#<RedAmber::Vector(:uint8, size=5):0x000000000000f910>\n",
1463
+ "{:x=>#<RedAmber::Vector(:uint8, size=5):0x000000000000f280>\n",
1464
1464
  "[1, 2, 3, 4, 5]\n",
1465
- ", :y=>#<RedAmber::Vector(:double, size=5):0x000000000000f974>\n",
1465
+ ", :y=>#<RedAmber::Vector(:double, size=5):0x000000000000f2e4>\n",
1466
1466
  "[1.0, 2.0, 3.0, NaN, nil]\n",
1467
- ", :s=>#<RedAmber::Vector(:string, size=5):0x000000000000f988>\n",
1467
+ ", :s=>#<RedAmber::Vector(:string, size=5):0x000000000000f2f8>\n",
1468
1468
  "[\"A\", \"B\", \"C\", \"D\", nil]\n",
1469
- ", :b=>#<RedAmber::Vector(:boolean, size=5):0x000000000000f99c>\n",
1469
+ ", :b=>#<RedAmber::Vector(:boolean, size=5):0x000000000000f30c>\n",
1470
1470
  "[true, false, true, false, nil]\n",
1471
1471
  "}"
1472
1472
  ]
@@ -1514,7 +1514,7 @@
1514
1514
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>1.0</td></tr><tr><td>2</td><td>2.0</td></tr><tr><td>3</td><td>3.0</td></tr><tr><td>4</td><td>NaN</td></tr><tr><td>5</td><td><i>(nil)</i></td></tr></table>"
1515
1515
  ],
1516
1516
  "text/plain": [
1517
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f9b0>\n",
1517
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f320>\n",
1518
1518
  " x y\n",
1519
1519
  " <uint8> <double>\n",
1520
1520
  "1 1 1.0\n",
@@ -1546,7 +1546,7 @@
1546
1546
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>1.0</td></tr><tr><td>2</td><td>2.0</td></tr><tr><td>3</td><td>3.0</td></tr><tr><td>4</td><td>NaN</td></tr><tr><td>5</td><td><i>(nil)</i></td></tr></table>"
1547
1547
  ],
1548
1548
  "text/plain": [
1549
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f9c4>\n",
1549
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f334>\n",
1550
1550
  " x y\n",
1551
1551
  " <uint8> <double>\n",
1552
1552
  "1 1 1.0\n",
@@ -1578,7 +1578,7 @@
1578
1578
  "RedAmber::DataFrame <5 x 3 vectors> <table><tr><th>s</th><th>b</th><th>x</th></tr><tr><td>A</td><td>true</td><td>1</td></tr><tr><td>B</td><td>false</td><td>2</td></tr><tr><td>C</td><td>true</td><td>3</td></tr><tr><td>D</td><td>false</td><td>4</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td><td>5</td></tr></table>"
1579
1579
  ],
1580
1580
  "text/plain": [
1581
- "#<RedAmber::DataFrame : 5 x 3 Vectors, 0x000000000000f9d8>\n",
1581
+ "#<RedAmber::DataFrame : 5 x 3 Vectors, 0x000000000000f348>\n",
1582
1582
  " s b x\n",
1583
1583
  " <string> <boolean> <uint8>\n",
1584
1584
  "1 A true 1\n",
@@ -1625,7 +1625,7 @@
1625
1625
  "RedAmber::DataFrame <3 x 4 vectors> <table><tr><th>x</th><th>y</th><th>s</th><th>b</th></tr><tr><td>1</td><td>1.0</td><td>A</td><td>true</td></tr><tr><td>3</td><td>3.0</td><td>C</td><td>true</td></tr><tr><td>2</td><td>2.0</td><td>B</td><td>false</td></tr></table>"
1626
1626
  ],
1627
1627
  "text/plain": [
1628
- "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000f9ec>\n",
1628
+ "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000f35c>\n",
1629
1629
  " x y s b\n",
1630
1630
  " <uint8> <double> <string> <boolean>\n",
1631
1631
  "1 1 1.0 A true\n",
@@ -1655,7 +1655,7 @@
1655
1655
  "RedAmber::DataFrame <3 x 4 vectors> <table><tr><th>x</th><th>y</th><th>s</th><th>b</th></tr><tr><td>2</td><td>2.0</td><td>B</td><td>false</td></tr><tr><td>3</td><td>3.0</td><td>C</td><td>true</td></tr><tr><td>5</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
1656
1656
  ],
1657
1657
  "text/plain": [
1658
- "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000fa00>\n",
1658
+ "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000f370>\n",
1659
1659
  " x y s b\n",
1660
1660
  " <uint8> <double> <string> <boolean>\n",
1661
1661
  "1 2 2.0 B false\n",
@@ -1686,7 +1686,7 @@
1686
1686
  "RedAmber::DataFrame <3 x 4 vectors> <table><tr><th>x</th><th>y</th><th>s</th><th>b</th></tr><tr><td>2</td><td>2.0</td><td>B</td><td>false</td></tr><tr><td>3</td><td>3.0</td><td>C</td><td>true</td></tr><tr><td>5</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
1687
1687
  ],
1688
1688
  "text/plain": [
1689
- "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000fa14>\n",
1689
+ "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000f384>\n",
1690
1690
  " x y s b\n",
1691
1691
  " <uint8> <double> <string> <boolean>\n",
1692
1692
  "1 2 2.0 B false\n",
@@ -1717,7 +1717,7 @@
1717
1717
  "RedAmber::DataFrame <3 x 4 vectors> <table><tr><th>x</th><th>y</th><th>s</th><th>b</th></tr><tr><td>1</td><td>1.0</td><td>A</td><td>true</td></tr><tr><td>3</td><td>3.0</td><td>C</td><td>true</td></tr><tr><td>5</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
1718
1718
  ],
1719
1719
  "text/plain": [
1720
- "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000fa28>\n",
1720
+ "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000f398>\n",
1721
1721
  " x y s b\n",
1722
1722
  " <uint8> <double> <string> <boolean>\n",
1723
1723
  "1 1 1.0 A true\n",
@@ -1748,7 +1748,7 @@
1748
1748
  "RedAmber::DataFrame <3 x 4 vectors> <table><tr><th>x</th><th>y</th><th>s</th><th>b</th></tr><tr><td>3</td><td>3.0</td><td>C</td><td>true</td></tr><tr><td>4</td><td>NaN</td><td>D</td><td>false</td></tr><tr><td>5</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
1749
1749
  ],
1750
1750
  "text/plain": [
1751
- "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000fa3c>\n",
1751
+ "#<RedAmber::DataFrame : 3 x 4 Vectors, 0x000000000000f3ac>\n",
1752
1752
  " x y s b\n",
1753
1753
  " <uint8> <double> <string> <boolean>\n",
1754
1754
  "1 3 3.0 C true\n",
@@ -1777,7 +1777,7 @@
1777
1777
  {
1778
1778
  "data": {
1779
1779
  "text/plain": [
1780
- "#<RedAmber::Vector(:boolean, size=5):0x000000000000f99c>\n",
1780
+ "#<RedAmber::Vector(:boolean, size=5):0x000000000000f30c>\n",
1781
1781
  "[true, false, true, false, nil]\n"
1782
1782
  ]
1783
1783
  },
@@ -1803,7 +1803,7 @@
1803
1803
  "RedAmber::DataFrame <2 x 4 vectors> <table><tr><th>x</th><th>y</th><th>s</th><th>b</th></tr><tr><td>1</td><td>1.0</td><td>A</td><td>true</td></tr><tr><td>3</td><td>3.0</td><td>C</td><td>true</td></tr></table>"
1804
1804
  ],
1805
1805
  "text/plain": [
1806
- "#<RedAmber::DataFrame : 2 x 4 Vectors, 0x000000000000fa50>\n",
1806
+ "#<RedAmber::DataFrame : 2 x 4 Vectors, 0x000000000000f3c0>\n",
1807
1807
  " x y s b\n",
1808
1808
  " <uint8> <double> <string> <boolean>\n",
1809
1809
  "1 1 1.0 A true\n",
@@ -1922,7 +1922,7 @@
1922
1922
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>s</th><th>y</th></tr><tr><td>A</td><td>1.0</td></tr><tr><td>B</td><td>2.0</td></tr><tr><td>C</td><td>3.0</td></tr><tr><td>D</td><td>NaN</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
1923
1923
  ],
1924
1924
  "text/plain": [
1925
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000fa64>\n",
1925
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f3d4>\n",
1926
1926
  " s y\n",
1927
1927
  " <string> <double>\n",
1928
1928
  "1 A 1.0\n",
@@ -1963,7 +1963,7 @@
1963
1963
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>y</th><th>s</th></tr><tr><td>1.0</td><td>A</td></tr><tr><td>2.0</td><td>B</td></tr><tr><td>3.0</td><td>C</td></tr><tr><td>NaN</td><td>D</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
1964
1964
  ],
1965
1965
  "text/plain": [
1966
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000fa78>\n",
1966
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f3e8>\n",
1967
1967
  " y s\n",
1968
1968
  " <double> <string>\n",
1969
1969
  "1 1.0 A\n",
@@ -2006,7 +2006,7 @@
2006
2006
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>x</th><th>y</th></tr><tr><td>1</td><td>1.0</td></tr><tr><td>2</td><td>2.0</td></tr><tr><td>3</td><td>3.0</td></tr><tr><td>4</td><td>NaN</td></tr><tr><td>5</td><td><i>(nil)</i></td></tr></table>"
2007
2007
  ],
2008
2008
  "text/plain": [
2009
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000fa8c>\n",
2009
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f3fc>\n",
2010
2010
  " x y\n",
2011
2011
  " <uint8> <double>\n",
2012
2012
  "1 1 1.0\n",
@@ -2067,7 +2067,7 @@
2067
2067
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>y</th><th>s</th></tr><tr><td>1.0</td><td>A</td></tr><tr><td>2.0</td><td>B</td></tr><tr><td>3.0</td><td>C</td></tr><tr><td>NaN</td><td>D</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
2068
2068
  ],
2069
2069
  "text/plain": [
2070
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000faa0>\n",
2070
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f410>\n",
2071
2071
  " y s\n",
2072
2072
  " <double> <string>\n",
2073
2073
  "1 1.0 A\n",
@@ -2107,7 +2107,7 @@
2107
2107
  "RedAmber::DataFrame <5 x 2 vectors> <table><tr><th>y</th><th>s</th></tr><tr><td>1.0</td><td>A</td></tr><tr><td>2.0</td><td>B</td></tr><tr><td>3.0</td><td>C</td></tr><tr><td>NaN</td><td>D</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
2108
2108
  ],
2109
2109
  "text/plain": [
2110
- "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000fab4>\n",
2110
+ "#<RedAmber::DataFrame : 5 x 2 Vectors, 0x000000000000f424>\n",
2111
2111
  " y s\n",
2112
2112
  " <double> <string>\n",
2113
2113
  "1 1.0 A\n",
@@ -2149,7 +2149,7 @@
2149
2149
  "RedAmber::DataFrame <5 x 1 vector> <table><tr><th>x</th></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr><tr><td>5</td></tr></table>"
2150
2150
  ],
2151
2151
  "text/plain": [
2152
- "#<RedAmber::DataFrame : 5 x 1 Vector, 0x000000000000fac8>\n",
2152
+ "#<RedAmber::DataFrame : 5 x 1 Vector, 0x000000000000f438>\n",
2153
2153
  " x\n",
2154
2154
  " <uint8>\n",
2155
2155
  "1 1\n",
@@ -2188,7 +2188,7 @@
2188
2188
  "RedAmber::DataFrame <5 x 1 vector> <table><tr><th>x</th></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr><tr><td>5</td></tr></table>"
2189
2189
  ],
2190
2190
  "text/plain": [
2191
- "#<RedAmber::DataFrame : 5 x 1 Vector, 0x000000000000fadc>\n",
2191
+ "#<RedAmber::DataFrame : 5 x 1 Vector, 0x000000000000f44c>\n",
2192
2192
  " x\n",
2193
2193
  " <uint8>\n",
2194
2194
  "1 1\n",
@@ -2271,7 +2271,7 @@
2271
2271
  {
2272
2272
  "data": {
2273
2273
  "text/plain": [
2274
- "#<RedAmber::Vector(:boolean, size=4):0x000000000000faf0>\n",
2274
+ "#<RedAmber::Vector(:boolean, size=4):0x000000000000f460>\n",
2275
2275
  "[true, true, false, nil]\n"
2276
2276
  ]
2277
2277
  },
@@ -2301,7 +2301,7 @@
2301
2301
  {
2302
2302
  "data": {
2303
2303
  "text/plain": [
2304
- "#<RedAmber::Vector(:boolean, size=4):0x000000000000fb04>\n",
2304
+ "#<RedAmber::Vector(:boolean, size=4):0x000000000000f474>\n",
2305
2305
  "[false, false, true, nil]\n"
2306
2306
  ]
2307
2307
  },
@@ -2335,7 +2335,7 @@
2335
2335
  {
2336
2336
  "data": {
2337
2337
  "text/plain": [
2338
- "#<RedAmber::Vector(:boolean, size=4):0x000000000000fb18>\n",
2338
+ "#<RedAmber::Vector(:boolean, size=4):0x000000000000f488>\n",
2339
2339
  "[false, false, true, true]\n"
2340
2340
  ]
2341
2341
  },
@@ -2397,7 +2397,7 @@
2397
2397
  "RedAmber::DataFrame <5 x 1 vector> <table><tr><th>x</th></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr><tr><td>5</td></tr></table>"
2398
2398
  ],
2399
2399
  "text/plain": [
2400
- "#<RedAmber::DataFrame : 5 x 1 Vector, 0x000000000000fb2c>\n",
2400
+ "#<RedAmber::DataFrame : 5 x 1 Vector, 0x000000000000f49c>\n",
2401
2401
  " x\n",
2402
2402
  " <uint8>\n",
2403
2403
  "1 1\n",
@@ -2434,7 +2434,7 @@
2434
2434
  {
2435
2435
  "data": {
2436
2436
  "text/plain": [
2437
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000f910>\n",
2437
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f280>\n",
2438
2438
  "[1, 2, 3, 4, 5]\n"
2439
2439
  ]
2440
2440
  },
@@ -2491,7 +2491,7 @@
2491
2491
  "RedAmber::DataFrame <10 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
2492
2492
  ],
2493
2493
  "text/plain": [
2494
- "#<RedAmber::DataFrame : 10 x 8 Vectors, 0x000000000000fb40>\n",
2494
+ "#<RedAmber::DataFrame : 10 x 8 Vectors, 0x000000000000f4b0>\n",
2495
2495
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
2496
2496
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
2497
2497
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -2527,7 +2527,7 @@
2527
2527
  "RedAmber::DataFrame <1 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Biscoe</td><td>42.2</td><td>19.5</td><td>197</td><td>4275</td><td>male</td><td>2009</td></tr></table>"
2528
2528
  ],
2529
2529
  "text/plain": [
2530
- "#<RedAmber::DataFrame : 1 x 8 Vectors, 0x000000000000fb54>\n",
2530
+ "#<RedAmber::DataFrame : 1 x 8 Vectors, 0x000000000000f4c4>\n",
2531
2531
  " species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g ... year\n",
2532
2532
  " <string> <string> <double> <double> <uint8> <uint16> ... <uint16>\n",
2533
2533
  "1 Adelie Biscoe 42.2 19.5 197 4275 ... 2009\n"
@@ -2572,7 +2572,7 @@
2572
2572
  {
2573
2573
  "data": {
2574
2574
  "text/plain": [
2575
- "#<RedAmber::Vector(:boolean, size=344):0x000000000000fb68>\n",
2575
+ "#<RedAmber::Vector(:boolean, size=344):0x000000000000f4d8>\n",
2576
2576
  "[false, false, true, nil, false, false, false, false, false, true, false, false, ... ]\n"
2577
2577
  ]
2578
2578
  },
@@ -2598,7 +2598,7 @@
2598
2598
  "RedAmber::DataFrame <242 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>42.0</td><td>20.2</td><td>190</td><td>4250</td><td><i>(nil)</i></td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>41.1</td><td>17.6</td><td>182</td><td>3200</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>42.5</td><td>20.7</td><td>197</td><td>4500</td><td>male</td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
2599
2599
  ],
2600
2600
  "text/plain": [
2601
- "#<RedAmber::DataFrame : 242 x 8 Vectors, 0x000000000000fb7c>\n",
2601
+ "#<RedAmber::DataFrame : 242 x 8 Vectors, 0x000000000000f4ec>\n",
2602
2602
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
2603
2603
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
2604
2604
  " 1 Adelie Torgersen 40.3 18.0 195 ... 2007\n",
@@ -2644,7 +2644,7 @@
2644
2644
  "RedAmber::DataFrame <204 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.3</td><td>20.6</td><td>190</td><td>3650</td><td>male</td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>47.2</td><td>13.7</td><td>214</td><td>4925</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>46.8</td><td>14.3</td><td>215</td><td>4850</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr></table>"
2645
2645
  ],
2646
2646
  "text/plain": [
2647
- "#<RedAmber::DataFrame : 204 x 8 Vectors, 0x000000000000fb90>\n",
2647
+ "#<RedAmber::DataFrame : 204 x 8 Vectors, 0x000000000000f500>\n",
2648
2648
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
2649
2649
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
2650
2650
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -2698,7 +2698,7 @@
2698
2698
  {
2699
2699
  "data": {
2700
2700
  "text/plain": [
2701
- "#<Arrow::Table:0x113e72048 ptr=0x7fcc50a542a0>\n",
2701
+ "#<Arrow::Table:0x7f88a4c37268 ptr=0x5584364b26a0>\n",
2702
2702
  "\t a\tb\t c\n",
2703
2703
  "0\t 1\tA\t 1.000000\n",
2704
2704
  "1\t(null)\t(null)\t (null)\n"
@@ -2732,7 +2732,7 @@
2732
2732
  {
2733
2733
  "data": {
2734
2734
  "text/plain": [
2735
- "#<Arrow::Table:0x113e51438 ptr=0x7fcc4f7e4ed0>\n",
2735
+ "#<Arrow::Table:0x7f88a4ca82b0 ptr=0x5584364b1a80>\n",
2736
2736
  "\ta\tb\t c\n",
2737
2737
  "0\t1\tA\t 1.000000\n"
2738
2738
  ]
@@ -2782,7 +2782,7 @@
2782
2782
  "RedAmber::DataFrame <334 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.3</td><td>20.6</td><td>190</td><td>3650</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>38.9</td><td>17.8</td><td>181</td><td>3625</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.2</td><td>19.6</td><td>195</td><td>4675</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>34.1</td><td>18.1</td><td>193</td><td>3475</td><td><i>(nil)</i></td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>44.5</td><td>15.7</td><td>217</td><td>4875</td><td><i>(nil)</i></td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>48.8</td><td>16.2</td><td>222</td><td>6000</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>47.2</td><td>13.7</td><td>214</td><td>4925</td><td>female</td><td>2009</td></tr></table>"
2783
2783
  ],
2784
2784
  "text/plain": [
2785
- "#<RedAmber::DataFrame : 334 x 8 Vectors, 0x000000000000fba4>\n",
2785
+ "#<RedAmber::DataFrame : 334 x 8 Vectors, 0x000000000000f514>\n",
2786
2786
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
2787
2787
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
2788
2788
  " 1 Adelie Torgersen 39.3 20.6 190 ... 2007\n",
@@ -2826,7 +2826,7 @@
2826
2826
  "RedAmber::DataFrame <333 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>36.7</td><td>19.3</td><td>193</td><td>3450</td><td>female</td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
2827
2827
  ],
2828
2828
  "text/plain": [
2829
- "#<RedAmber::DataFrame : 333 x 8 Vectors, 0x000000000000fbb8>\n",
2829
+ "#<RedAmber::DataFrame : 333 x 8 Vectors, 0x000000000000f528>\n",
2830
2830
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
2831
2831
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
2832
2832
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -2870,7 +2870,7 @@
2870
2870
  "RedAmber::DataFrame <140 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>36.7</td><td>19.3</td><td>193</td><td>3450</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>34.1</td><td>18.1</td><td>193</td><td>3475</td><td><i>(nil)</i></td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>37.8</td><td>17.1</td><td>186</td><td>3300</td><td><i>(nil)</i></td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
2871
2871
  ],
2872
2872
  "text/plain": [
2873
- "#<RedAmber::DataFrame : 140 x 8 Vectors, 0x000000000000fbcc>\n",
2873
+ "#<RedAmber::DataFrame : 140 x 8 Vectors, 0x000000000000f53c>\n",
2874
2874
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
2875
2875
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
2876
2876
  " 1 Adelie Torgersen (nil) (nil) (nil) ... 2007\n",
@@ -2927,7 +2927,7 @@
2927
2927
  "RedAmber::DataFrame <3 x 3 vectors> <table><tr><th>a</th><th>b</th><th>c</th></tr><tr><td>1</td><td>A</td><td>1.0</td></tr><tr><td>2</td><td>B</td><td>2.0</td></tr><tr><td><i>(nil)</i></td><td>C</td><td>3.0</td></tr></table>"
2928
2928
  ],
2929
2929
  "text/plain": [
2930
- "#<RedAmber::DataFrame : 3 x 3 Vectors, 0x000000000000fbe0>\n",
2930
+ "#<RedAmber::DataFrame : 3 x 3 Vectors, 0x000000000000f550>\n",
2931
2931
  " a b c\n",
2932
2932
  " <uint8> <string> <double>\n",
2933
2933
  "1 1 A 1.0\n",
@@ -2953,7 +2953,7 @@
2953
2953
  {
2954
2954
  "data": {
2955
2955
  "text/plain": [
2956
- "#<RedAmber::Vector(:boolean, size=3):0x000000000000fbf4>\n",
2956
+ "#<RedAmber::Vector(:boolean, size=3):0x000000000000f564>\n",
2957
2957
  "[true, false, nil]\n"
2958
2958
  ]
2959
2959
  },
@@ -3025,7 +3025,7 @@
3025
3025
  {
3026
3026
  "data": {
3027
3027
  "text/plain": [
3028
- "#<RedAmber::Vector(:boolean, size=3):0x000000000000fc08>\n",
3028
+ "#<RedAmber::Vector(:boolean, size=3):0x000000000000f578>\n",
3029
3029
  "[false, true, nil]\n"
3030
3030
  ]
3031
3031
  },
@@ -3050,7 +3050,7 @@
3050
3050
  "RedAmber::DataFrame <2 x 3 vectors> <table><tr><th>a</th><th>b</th><th>c</th></tr><tr><td>1</td><td>A</td><td>1.0</td></tr><tr><td><i>(nil)</i></td><td>C</td><td>3.0</td></tr></table>"
3051
3051
  ],
3052
3052
  "text/plain": [
3053
- "#<RedAmber::DataFrame : 2 x 3 Vectors, 0x000000000000fc1c>\n",
3053
+ "#<RedAmber::DataFrame : 2 x 3 Vectors, 0x000000000000f58c>\n",
3054
3054
  " a b c\n",
3055
3055
  " <uint8> <string> <double>\n",
3056
3056
  "1 1 A 1.0\n",
@@ -3083,7 +3083,7 @@
3083
3083
  {
3084
3084
  "data": {
3085
3085
  "text/plain": [
3086
- "#<RedAmber::Vector(:boolean, size=3):0x000000000000fc30>\n",
3086
+ "#<RedAmber::Vector(:boolean, size=3):0x000000000000f5a0>\n",
3087
3087
  "[false, true, true]\n"
3088
3088
  ]
3089
3089
  },
@@ -3108,7 +3108,7 @@
3108
3108
  "RedAmber::DataFrame <1 x 3 vectors> <table><tr><th>a</th><th>b</th><th>c</th></tr><tr><td>1</td><td>A</td><td>1.0</td></tr></table>"
3109
3109
  ],
3110
3110
  "text/plain": [
3111
- "#<RedAmber::DataFrame : 1 x 3 Vectors, 0x000000000000fc44>\n",
3111
+ "#<RedAmber::DataFrame : 1 x 3 Vectors, 0x000000000000f5b4>\n",
3112
3112
  " a b c\n",
3113
3113
  " <uint8> <string> <double>\n",
3114
3114
  "1 1 A 1.0\n"
@@ -3172,7 +3172,7 @@
3172
3172
  "RedAmber::DataFrame <333 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>36.7</td><td>19.3</td><td>193</td><td>3450</td><td>female</td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
3173
3173
  ],
3174
3174
  "text/plain": [
3175
- "#<RedAmber::DataFrame : 333 x 8 Vectors, 0x000000000000fc58>\n",
3175
+ "#<RedAmber::DataFrame : 333 x 8 Vectors, 0x000000000000f5c8>\n",
3176
3176
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
3177
3177
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
3178
3178
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -3215,7 +3215,7 @@
3215
3215
  "RedAmber::DataFrame <333 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>36.7</td><td>19.3</td><td>193</td><td>3450</td><td>female</td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
3216
3216
  ],
3217
3217
  "text/plain": [
3218
- "#<RedAmber::DataFrame : 333 x 8 Vectors, 0x000000000000fc6c>\n",
3218
+ "#<RedAmber::DataFrame : 333 x 8 Vectors, 0x000000000000f5dc>\n",
3219
3219
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
3220
3220
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
3221
3221
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -3274,7 +3274,7 @@
3274
3274
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>name</th><th>age</th></tr><tr><td>Yasuko</td><td>68</td></tr><tr><td>Rui</td><td>49</td></tr><tr><td>Hinata</td><td>28</td></tr></table>"
3275
3275
  ],
3276
3276
  "text/plain": [
3277
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000fc80>\n",
3277
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f5f0>\n",
3278
3278
  " name age\n",
3279
3279
  " <string> <uint8>\n",
3280
3280
  "1 Yasuko 68\n",
@@ -3304,7 +3304,7 @@
3304
3304
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>name</th><th>age_in_1993</th></tr><tr><td>Yasuko</td><td>68</td></tr><tr><td>Rui</td><td>49</td></tr><tr><td>Hinata</td><td>28</td></tr></table>"
3305
3305
  ],
3306
3306
  "text/plain": [
3307
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000fc94>\n",
3307
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f604>\n",
3308
3308
  " name age_in_1993\n",
3309
3309
  " <string> <uint8>\n",
3310
3310
  "1 Yasuko 68\n",
@@ -3376,7 +3376,7 @@
3376
3376
  "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>name</th><th>age</th></tr><tr><td>Yasuko</td><td>68</td></tr><tr><td>Rui</td><td>49</td></tr><tr><td>Hinata</td><td>28</td></tr></table>"
3377
3377
  ],
3378
3378
  "text/plain": [
3379
- "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000fca8>\n",
3379
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f618>\n",
3380
3380
  " name age\n",
3381
3381
  " <string> <uint8>\n",
3382
3382
  "1 Yasuko 68\n",
@@ -3405,7 +3405,7 @@
3405
3405
  "RedAmber::DataFrame <3 x 3 vectors> <table><tr><th>name</th><th>age</th><th>brother</th></tr><tr><td>Yasuko</td><td>97</td><td>Santa</td></tr><tr><td>Rui</td><td>78</td><td><i>(nil)</i></td></tr><tr><td>Hinata</td><td>57</td><td>Momotaro</td></tr></table>"
3406
3406
  ],
3407
3407
  "text/plain": [
3408
- "#<RedAmber::DataFrame : 3 x 3 Vectors, 0x000000000000fcbc>\n",
3408
+ "#<RedAmber::DataFrame : 3 x 3 Vectors, 0x000000000000f62c>\n",
3409
3409
  " name age brother\n",
3410
3410
  " <string> <uint8> <string>\n",
3411
3411
  "1 Yasuko 97 Santa\n",
@@ -3444,7 +3444,7 @@
3444
3444
  "RedAmber::DataFrame <5 x 3 vectors> <table><tr><th>index</th><th>float</th><th>string</th></tr><tr><td>0</td><td>0.0</td><td>A</td></tr><tr><td>1</td><td>1.1</td><td>B</td></tr><tr><td>2</td><td>2.2</td><td>C</td></tr><tr><td>3</td><td>NaN</td><td>D</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
3445
3445
  ],
3446
3446
  "text/plain": [
3447
- "#<RedAmber::DataFrame : 5 x 3 Vectors, 0x000000000000fcd0>\n",
3447
+ "#<RedAmber::DataFrame : 5 x 3 Vectors, 0x000000000000f640>\n",
3448
3448
  " index float string\n",
3449
3449
  " <uint8> <double> <string>\n",
3450
3450
  "1 0 0.0 A\n",
@@ -3478,7 +3478,7 @@
3478
3478
  "RedAmber::DataFrame <5 x 3 vectors> <table><tr><th>index</th><th>float</th><th>string</th></tr><tr><td>0</td><td>-0.0</td><td>A</td></tr><tr><td>255</td><td>-1.1</td><td>B</td></tr><tr><td>254</td><td>-2.2</td><td>C</td></tr><tr><td>253</td><td>NaN</td><td>D</td></tr><tr><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td></tr></table>"
3479
3479
  ],
3480
3480
  "text/plain": [
3481
- "#<RedAmber::DataFrame : 5 x 3 Vectors, 0x000000000000fce4>\n",
3481
+ "#<RedAmber::DataFrame : 5 x 3 Vectors, 0x000000000000f654>\n",
3482
3482
  " index float string\n",
3483
3483
  " <uint8> <double> <string>\n",
3484
3484
  "1 0 -0.0 A\n",
@@ -3529,7 +3529,7 @@
3529
3529
  {
3530
3530
  "data": {
3531
3531
  "text/plain": [
3532
- "#<RedAmber::Vector(:uint8, size=3):0x000000000000fcf8>\n",
3532
+ "#<RedAmber::Vector(:uint8, size=3):0x000000000000f668>\n",
3533
3533
  "[1, 2, 3]\n"
3534
3534
  ]
3535
3535
  },
@@ -3551,7 +3551,7 @@
3551
3551
  {
3552
3552
  "data": {
3553
3553
  "text/plain": [
3554
- "#<RedAmber::Vector(:int16, size=3):0x000000000000fd0c>\n",
3554
+ "#<RedAmber::Vector(:int16, size=3):0x000000000000f67c>\n",
3555
3555
  "[-1, -2, -3]\n"
3556
3556
  ]
3557
3557
  },
@@ -3574,7 +3574,7 @@
3574
3574
  {
3575
3575
  "data": {
3576
3576
  "text/plain": [
3577
- "#<RedAmber::Vector(:int16, size=3):0x000000000000fd20>\n",
3577
+ "#<RedAmber::Vector(:int16, size=3):0x000000000000f690>\n",
3578
3578
  "[-1, -2, -3]\n"
3579
3579
  ]
3580
3580
  },
@@ -3597,7 +3597,7 @@
3597
3597
  {
3598
3598
  "data": {
3599
3599
  "text/plain": [
3600
- "#<RedAmber::Vector(:uint8, size=3):0x000000000000fd34>\n",
3600
+ "#<RedAmber::Vector(:uint8, size=3):0x000000000000f6a4>\n",
3601
3601
  "[255, 254, 253]\n"
3602
3602
  ]
3603
3603
  },
@@ -3698,7 +3698,7 @@
3698
3698
  {
3699
3699
  "data": {
3700
3700
  "text/plain": [
3701
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000fd48>\n",
3701
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f6b8>\n",
3702
3702
  "[0, 1, 1, 3, 3]\n"
3703
3703
  ]
3704
3704
  },
@@ -3721,7 +3721,7 @@
3721
3721
  {
3722
3722
  "data": {
3723
3723
  "text/plain": [
3724
- "#<RedAmber::Vector(:uint8, size=5):0x000000000000fd5c>\n",
3724
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f6cc>\n",
3725
3725
  "[0, 1, 3, 3, nil]\n"
3726
3726
  ]
3727
3727
  },
@@ -4038,7 +4038,7 @@
4038
4038
  {
4039
4039
  "data": {
4040
4040
  "text/plain": [
4041
- "#<RedAmber::Vector(:double, size=3):0x000000000000fd70>\n",
4041
+ "#<RedAmber::Vector(:double, size=3):0x000000000000f6e0>\n",
4042
4042
  "[-1.0, 2.0, -3.0]\n"
4043
4043
  ]
4044
4044
  },
@@ -4061,7 +4061,7 @@
4061
4061
  {
4062
4062
  "data": {
4063
4063
  "text/plain": [
4064
- "#<RedAmber::Vector(:double, size=3):0x000000000000fd84>\n",
4064
+ "#<RedAmber::Vector(:double, size=3):0x000000000000f6f4>\n",
4065
4065
  "[-1.0, 2.0, -3.0]\n"
4066
4066
  ]
4067
4067
  },
@@ -4105,7 +4105,7 @@
4105
4105
  {
4106
4106
  "data": {
4107
4107
  "text/plain": [
4108
- "#<RedAmber::Vector(:double, size=5):0x000000000000fd98>\n",
4108
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f708>\n",
4109
4109
  "[15.15, 2.5, 3.5, -4.5, -5.5]\n"
4110
4110
  ]
4111
4111
  },
@@ -4127,7 +4127,7 @@
4127
4127
  {
4128
4128
  "data": {
4129
4129
  "text/plain": [
4130
- "#<RedAmber::Vector(:double, size=5):0x000000000000fdac>\n",
4130
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f71c>\n",
4131
4131
  "[15.0, 2.0, 4.0, -4.0, -6.0]\n"
4132
4132
  ]
4133
4133
  },
@@ -4149,7 +4149,7 @@
4149
4149
  {
4150
4150
  "data": {
4151
4151
  "text/plain": [
4152
- "#<RedAmber::Vector(:double, size=5):0x000000000000fdc0>\n",
4152
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f730>\n",
4153
4153
  "[15.0, 2.0, 4.0, -4.0, -6.0]\n"
4154
4154
  ]
4155
4155
  },
@@ -4171,7 +4171,7 @@
4171
4171
  {
4172
4172
  "data": {
4173
4173
  "text/plain": [
4174
- "#<RedAmber::Vector(:double, size=5):0x000000000000fdd4>\n",
4174
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f744>\n",
4175
4175
  "[16.0, 3.0, 4.0, -5.0, -6.0]\n"
4176
4176
  ]
4177
4177
  },
@@ -4193,7 +4193,7 @@
4193
4193
  {
4194
4194
  "data": {
4195
4195
  "text/plain": [
4196
- "#<RedAmber::Vector(:double, size=5):0x000000000000fde8>\n",
4196
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f758>\n",
4197
4197
  "[15.0, 3.0, 4.0, -4.0, -5.0]\n"
4198
4198
  ]
4199
4199
  },
@@ -4215,7 +4215,7 @@
4215
4215
  {
4216
4216
  "data": {
4217
4217
  "text/plain": [
4218
- "#<RedAmber::Vector(:double, size=5):0x000000000000fdfc>\n",
4218
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f76c>\n",
4219
4219
  "[15.0, 2.0, 3.0, -4.0, -5.0]\n"
4220
4220
  ]
4221
4221
  },
@@ -4237,7 +4237,7 @@
4237
4237
  {
4238
4238
  "data": {
4239
4239
  "text/plain": [
4240
- "#<RedAmber::Vector(:double, size=5):0x000000000000fe10>\n",
4240
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f780>\n",
4241
4241
  "[15.0, 3.0, 4.0, -5.0, -6.0]\n"
4242
4242
  ]
4243
4243
  },
@@ -4259,7 +4259,7 @@
4259
4259
  {
4260
4260
  "data": {
4261
4261
  "text/plain": [
4262
- "#<RedAmber::Vector(:double, size=5):0x000000000000fe24>\n",
4262
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f794>\n",
4263
4263
  "[15.0, 3.0, 3.0, -5.0, -5.0]\n"
4264
4264
  ]
4265
4265
  },
@@ -4281,7 +4281,7 @@
4281
4281
  {
4282
4282
  "data": {
4283
4283
  "text/plain": [
4284
- "#<RedAmber::Vector(:double, size=5):0x000000000000fe38>\n",
4284
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f7a8>\n",
4285
4285
  "[15.0, 2.0, 4.0, -4.0, -6.0]\n"
4286
4286
  ]
4287
4287
  },
@@ -4303,7 +4303,7 @@
4303
4303
  {
4304
4304
  "data": {
4305
4305
  "text/plain": [
4306
- "#<RedAmber::Vector(:double, size=5):0x000000000000fe4c>\n",
4306
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f7bc>\n",
4307
4307
  "[15.2, 2.5, 3.5, -4.5, -5.5]\n"
4308
4308
  ]
4309
4309
  },
@@ -4325,7 +4325,7 @@
4325
4325
  {
4326
4326
  "data": {
4327
4327
  "text/plain": [
4328
- "#<RedAmber::Vector(:double, size=5):0x000000000000fe60>\n",
4328
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f7d0>\n",
4329
4329
  "[20.0, 0.0, 0.0, -0.0, -10.0]\n"
4330
4330
  ]
4331
4331
  },
@@ -4365,7 +4365,7 @@
4365
4365
  {
4366
4366
  "data": {
4367
4367
  "text/plain": [
4368
- "#<RedAmber::Vector(:boolean, size=9):0x000000000000fe74>\n",
4368
+ "#<RedAmber::Vector(:boolean, size=9):0x000000000000f7e4>\n",
4369
4369
  "[true, false, nil, false, false, false, nil, false, nil]\n"
4370
4370
  ]
4371
4371
  },
@@ -4390,7 +4390,7 @@
4390
4390
  {
4391
4391
  "data": {
4392
4392
  "text/plain": [
4393
- "#<RedAmber::Vector(:boolean, size=9):0x000000000000fe88>\n",
4393
+ "#<RedAmber::Vector(:boolean, size=9):0x000000000000f7f8>\n",
4394
4394
  "[true, false, nil, true, false, nil, true, false, nil]\n"
4395
4395
  ]
4396
4396
  },
@@ -4413,7 +4413,7 @@
4413
4413
  {
4414
4414
  "data": {
4415
4415
  "text/plain": [
4416
- "#<RedAmber::Vector(:boolean, size=9):0x000000000000fe9c>\n",
4416
+ "#<RedAmber::Vector(:boolean, size=9):0x000000000000f80c>\n",
4417
4417
  "[true, false, nil, false, false, nil, nil, nil, nil]\n"
4418
4418
  ]
4419
4419
  },
@@ -4436,7 +4436,7 @@
4436
4436
  {
4437
4437
  "data": {
4438
4438
  "text/plain": [
4439
- "#<RedAmber::Vector(:boolean, size=9):0x000000000000feb0>\n",
4439
+ "#<RedAmber::Vector(:boolean, size=9):0x000000000000f820>\n",
4440
4440
  "[true, true, true, true, false, nil, true, nil, nil]\n"
4441
4441
  ]
4442
4442
  },
@@ -4458,7 +4458,7 @@
4458
4458
  {
4459
4459
  "data": {
4460
4460
  "text/plain": [
4461
- "#<RedAmber::Vector(:boolean, size=9):0x000000000000fec4>\n",
4461
+ "#<RedAmber::Vector(:boolean, size=9):0x000000000000f834>\n",
4462
4462
  "[true, true, true, false, false, false, nil, nil, nil]\n"
4463
4463
  ]
4464
4464
  },
@@ -4481,7 +4481,7 @@
4481
4481
  {
4482
4482
  "data": {
4483
4483
  "text/plain": [
4484
- "#<RedAmber::Vector(:boolean, size=9):0x000000000000fed8>\n",
4484
+ "#<RedAmber::Vector(:boolean, size=9):0x000000000000f848>\n",
4485
4485
  "[true, true, nil, true, false, nil, nil, nil, nil]\n"
4486
4486
  ]
4487
4487
  },
@@ -4520,7 +4520,7 @@
4520
4520
  {
4521
4521
  "data": {
4522
4522
  "text/plain": [
4523
- "#<RedAmber::Vector(:double, size=5):0x000000000000feec>\n",
4523
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f85c>\n",
4524
4524
  "[3.141592653589793, Infinity, -Infinity, NaN, nil]\n"
4525
4525
  ]
4526
4526
  },
@@ -4542,7 +4542,7 @@
4542
4542
  {
4543
4543
  "data": {
4544
4544
  "text/plain": [
4545
- "#<RedAmber::Vector(:boolean, size=5):0x000000000000ff00>\n",
4545
+ "#<RedAmber::Vector(:boolean, size=5):0x000000000000f870>\n",
4546
4546
  "[true, false, false, false, nil]\n"
4547
4547
  ]
4548
4548
  },
@@ -4564,7 +4564,7 @@
4564
4564
  {
4565
4565
  "data": {
4566
4566
  "text/plain": [
4567
- "#<RedAmber::Vector(:boolean, size=5):0x000000000000ff14>\n",
4567
+ "#<RedAmber::Vector(:boolean, size=5):0x000000000000f884>\n",
4568
4568
  "[false, true, true, false, nil]\n"
4569
4569
  ]
4570
4570
  },
@@ -4586,7 +4586,7 @@
4586
4586
  {
4587
4587
  "data": {
4588
4588
  "text/plain": [
4589
- "#<RedAmber::Vector(:boolean, size=5):0x000000000000ff28>\n",
4589
+ "#<RedAmber::Vector(:boolean, size=5):0x000000000000f898>\n",
4590
4590
  "[false, false, false, true, true]\n"
4591
4591
  ]
4592
4592
  },
@@ -4608,7 +4608,7 @@
4608
4608
  {
4609
4609
  "data": {
4610
4610
  "text/plain": [
4611
- "#<RedAmber::Vector(:boolean, size=5):0x000000000000ff3c>\n",
4611
+ "#<RedAmber::Vector(:boolean, size=5):0x000000000000f8ac>\n",
4612
4612
  "[false, false, false, false, true]\n"
4613
4613
  ]
4614
4614
  },
@@ -4630,7 +4630,7 @@
4630
4630
  {
4631
4631
  "data": {
4632
4632
  "text/plain": [
4633
- "#<RedAmber::Vector(:boolean, size=5):0x000000000000ff50>\n",
4633
+ "#<RedAmber::Vector(:boolean, size=5):0x000000000000f8c0>\n",
4634
4634
  "[true, true, true, true, false]\n"
4635
4635
  ]
4636
4636
  },
@@ -4663,7 +4663,7 @@
4663
4663
  "RedAmber::DataFrame <68 x 9 vectors> <table><tr><th>index</th><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>2</td><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>3</td><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>5</td><td>Adelie</td><td>Torgersen</td><td>36.7</td><td>19.3</td><td>193</td><td>3450</td><td>female</td><td>2007</td></tr><tr><td>7</td><td>Adelie</td><td>Torgersen</td><td>38.9</td><td>17.8</td><td>181</td><td>3625</td><td>female</td><td>2007</td></tr><tr><td colspan='9'>&#8942;</td></tr><tr><td>317</td><td>Gentoo</td><td>Biscoe</td><td>49.4</td><td>15.8</td><td>216</td><td>4925</td><td>male</td><td>2009</td></tr><tr><td>331</td><td>Gentoo</td><td>Biscoe</td><td>50.5</td><td>15.2</td><td>216</td><td>5000</td><td>female</td><td>2009</td></tr><tr><td>337</td><td>Gentoo</td><td>Biscoe</td><td>44.5</td><td>15.7</td><td>217</td><td>4875</td><td><i>(nil)</i></td><td>2009</td></tr></table>"
4664
4664
  ],
4665
4665
  "text/plain": [
4666
- "#<RedAmber::DataFrame : 68 x 9 Vectors, 0x000000000000ff64>\n",
4666
+ "#<RedAmber::DataFrame : 68 x 9 Vectors, 0x000000000000f8d4>\n",
4667
4667
  " index species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
4668
4668
  " <uint16> <string> <string> <double> <double> <uint8> ... <uint16>\n",
4669
4669
  " 1 2 Adelie Torgersen 39.5 17.4 186 ... 2007\n",
@@ -4720,7 +4720,7 @@
4720
4720
  "RedAmber::DataFrame <35 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>37.8</td><td>17.1</td><td>186</td><td>3300</td><td><i>(nil)</i></td><td>2007</td></tr><tr><td>Adelie</td><td>Biscoe</td><td>37.8</td><td>18.3</td><td>174</td><td>3400</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Dream</td><td>39.5</td><td>16.7</td><td>178</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>48.5</td><td>15.0</td><td>219</td><td>4850</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.5</td><td>15.2</td><td>216</td><td>5000</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>46.8</td><td>14.3</td><td>215</td><td>4850</td><td>female</td><td>2009</td></tr></table>"
4721
4721
  ],
4722
4722
  "text/plain": [
4723
- "#<RedAmber::DataFrame : 35 x 8 Vectors, 0x000000000000ff78>\n",
4723
+ "#<RedAmber::DataFrame : 35 x 8 Vectors, 0x000000000000f8e8>\n",
4724
4724
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
4725
4725
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
4726
4726
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -4772,7 +4772,7 @@
4772
4772
  "RedAmber::DataFrame <344 x 8 vectors> <table><tr><th>species</th><th>island</th><th>bill_length_mm</th><th>bill_depth_mm</th><th>flipper_length_mm</th><th>body_mass_g</th><th>sex</th><th>year</th></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.1</td><td>18.7</td><td>181</td><td>3750</td><td>male</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>39.5</td><td>17.4</td><td>186</td><td>3800</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td>40.3</td><td>18.0</td><td>195</td><td>3250</td><td>female</td><td>2007</td></tr><tr><td>Adelie</td><td>Torgersen</td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td><i>(nil)</i></td><td>2007</td></tr><tr><td colspan='8'>&#8942;</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>50.4</td><td>15.7</td><td>222</td><td>5750</td><td>male</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>45.2</td><td>14.8</td><td>212</td><td>5200</td><td>female</td><td>2009</td></tr><tr><td>Gentoo</td><td>Biscoe</td><td>49.9</td><td>16.1</td><td>213</td><td>5400</td><td>male</td><td>2009</td></tr></table>"
4773
4773
  ],
4774
4774
  "text/plain": [
4775
- "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f8ac>\n",
4775
+ "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f21c>\n",
4776
4776
  " species island bill_length_mm bill_depth_mm flipper_length_mm ... year\n",
4777
4777
  " <string> <string> <double> <double> <uint8> ... <uint16>\n",
4778
4778
  " 1 Adelie Torgersen 39.1 18.7 181 ... 2007\n",
@@ -4806,7 +4806,7 @@
4806
4806
  "name": "stdout",
4807
4807
  "output_type": "stream",
4808
4808
  "text": [
4809
- "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f8ac>\n",
4809
+ "#<RedAmber::DataFrame : 344 x 8 Vectors, 0x000000000000f21c>\n",
4810
4810
  "Vectors : 5 numeric, 3 strings\n",
4811
4811
  "# key type level data_preview\n",
4812
4812
  "1 :species string 3 {\"Adelie\"=>152, \"Chinstrap\"=>68, \"Gentoo\"=>124}\n",
@@ -4852,11 +4852,593 @@
4852
4852
  "source": [
4853
4853
  "penguins"
4854
4854
  ]
4855
+ },
4856
+ {
4857
+ "cell_type": "code",
4858
+ "execution_count": 145,
4859
+ "id": "b00c858b-b14a-492b-bc22-d6a707bcc1ba",
4860
+ "metadata": {},
4861
+ "outputs": [
4862
+ {
4863
+ "data": {
4864
+ "text/plain": [
4865
+ "\"Table\""
4866
+ ]
4867
+ },
4868
+ "execution_count": 145,
4869
+ "metadata": {},
4870
+ "output_type": "execute_result"
4871
+ }
4872
+ ],
4873
+ "source": [
4874
+ "ENV['RED_AMBER_OUTPUT_MODE'] = 'Table'"
4875
+ ]
4876
+ },
4877
+ {
4878
+ "cell_type": "markdown",
4879
+ "id": "c6781904-c014-4ef0-86c5-8a758ca3ca1c",
4880
+ "metadata": {},
4881
+ "source": [
4882
+ "## 48. Empty key"
4883
+ ]
4884
+ },
4885
+ {
4886
+ "cell_type": "markdown",
4887
+ "id": "38912e38-bddd-47cc-adfd-5c4f780636ea",
4888
+ "metadata": {},
4889
+ "source": [
4890
+ "Empty key `:\"\"` will be automatically renamed to `:unnamed1`.\n",
4891
+ "\n",
4892
+ "If `:unnamed1` was used, `:unnamed1.succ` will be used.\n",
4893
+ "\n",
4894
+ "(Since 0.1.8)"
4895
+ ]
4896
+ },
4897
+ {
4898
+ "cell_type": "code",
4899
+ "execution_count": 146,
4900
+ "id": "13569004-bb23-45fa-8d11-fe5f367641a6",
4901
+ "metadata": {},
4902
+ "outputs": [
4903
+ {
4904
+ "data": {
4905
+ "text/html": [
4906
+ "RedAmber::DataFrame <2 x 2 vectors> <table><tr><th>unnamed2</th><th>unnamed1</th></tr><tr><td>1</td><td>3</td></tr><tr><td>2</td><td>4</td></tr></table>"
4907
+ ],
4908
+ "text/plain": [
4909
+ "#<RedAmber::DataFrame : 2 x 2 Vectors, 0x000000000000f8fc>\n",
4910
+ " unnamed2 unnamed1\n",
4911
+ " <uint8> <uint8>\n",
4912
+ "1 1 3\n",
4913
+ "2 2 4\n"
4914
+ ]
4915
+ },
4916
+ "execution_count": 146,
4917
+ "metadata": {},
4918
+ "output_type": "execute_result"
4919
+ }
4920
+ ],
4921
+ "source": [
4922
+ "df = DataFrame.new(\"\": [1, 2], unnamed1: [3, 4])"
4923
+ ]
4924
+ },
4925
+ {
4926
+ "cell_type": "markdown",
4927
+ "id": "a4343343-d59a-4b71-b08f-4b737a6d4258",
4928
+ "metadata": {},
4929
+ "source": [
4930
+ "## 49. Grouping"
4931
+ ]
4932
+ },
4933
+ {
4934
+ "cell_type": "markdown",
4935
+ "id": "8ddf0937-7b0e-4ee6-8116-8e78c308e76f",
4936
+ "metadata": {},
4937
+ "source": [
4938
+ "`DataFrame#group` takes group_key as an argument, and creates `Group` class. \n",
4939
+ "\n",
4940
+ "Group class inspects counts of each unique elements. \n",
4941
+ "\n",
4942
+ "(Since 0.1.7)"
4943
+ ]
4944
+ },
4945
+ {
4946
+ "cell_type": "code",
4947
+ "execution_count": 147,
4948
+ "id": "ee602e52-7988-4fab-b5e3-c466acf01c98",
4949
+ "metadata": {},
4950
+ "outputs": [
4951
+ {
4952
+ "data": {
4953
+ "text/plain": [
4954
+ "#<RedAmber::Group:0x000000000000f910\n",
4955
+ "{:species=>{\"Adelie\"=>152, \"Chinstrap\"=>68, \"Gentoo\"=>124}}>"
4956
+ ]
4957
+ },
4958
+ "execution_count": 147,
4959
+ "metadata": {},
4960
+ "output_type": "execute_result"
4961
+ }
4962
+ ],
4963
+ "source": [
4964
+ "group = penguins.group(:species)"
4965
+ ]
4966
+ },
4967
+ {
4968
+ "cell_type": "markdown",
4969
+ "id": "a48ab0e9-60e3-4c07-a27b-9c53783318c1",
4970
+ "metadata": {},
4971
+ "source": [
4972
+ "The instance of `Group` class has methods to summary functions.\n",
4973
+ "\n",
4974
+ "It returns `function(key)` style summarized columns as a result."
4975
+ ]
4976
+ },
4977
+ {
4978
+ "cell_type": "code",
4979
+ "execution_count": 148,
4980
+ "id": "20b23ada-b895-4921-b57b-8d46b451e494",
4981
+ "metadata": {},
4982
+ "outputs": [
4983
+ {
4984
+ "data": {
4985
+ "text/html": [
4986
+ "RedAmber::DataFrame <3 x 8 vectors> <table><tr><th>species</th><th>count(island)</th><th>count(bill_length_mm)</th><th>count(bill_depth_mm)</th><th>count(flipper_length_mm)</th><th>count(body_mass_g)</th><th>count(sex)</th><th>count(year)</th></tr><tr><td>Adelie</td><td>152</td><td>151</td><td>151</td><td>151</td><td>151</td><td>146</td><td>152</td></tr><tr><td>Chinstrap</td><td>68</td><td>68</td><td>68</td><td>68</td><td>68</td><td>68</td><td>68</td></tr><tr><td>Gentoo</td><td>124</td><td>123</td><td>123</td><td>123</td><td>123</td><td>119</td><td>124</td></tr></table>"
4987
+ ],
4988
+ "text/plain": [
4989
+ "#<RedAmber::DataFrame : 3 x 8 Vectors, 0x000000000000f924>\n",
4990
+ " species count(island) count(bill_length_mm) count(bill_depth_mm) ... count(year)\n",
4991
+ " <string> <int64> <int64> <int64> ... <int64>\n",
4992
+ "1 Adelie 152 151 151 ... 152\n",
4993
+ "2 Chinstrap 68 68 68 ... 68\n",
4994
+ "3 Gentoo 124 123 123 ... 124\n"
4995
+ ]
4996
+ },
4997
+ "execution_count": 148,
4998
+ "metadata": {},
4999
+ "output_type": "execute_result"
5000
+ }
5001
+ ],
5002
+ "source": [
5003
+ "group.count"
5004
+ ]
5005
+ },
5006
+ {
5007
+ "cell_type": "markdown",
5008
+ "id": "584d8fa1-1e70-4f31-bdc2-5d4956a28cb5",
5009
+ "metadata": {},
5010
+ "source": [
5011
+ "If count result is same in multiple columns, count column is aggregated to one column `:count`."
5012
+ ]
5013
+ },
5014
+ {
5015
+ "cell_type": "code",
5016
+ "execution_count": 149,
5017
+ "id": "e6936488-9f23-47bd-8492-537c5be1afb3",
5018
+ "metadata": {},
5019
+ "outputs": [
5020
+ {
5021
+ "data": {
5022
+ "text/html": [
5023
+ "RedAmber::DataFrame <3 x 2 vectors> <table><tr><th>species</th><th>count</th></tr><tr><td>Adelie</td><td>151</td></tr><tr><td>Chinstrap</td><td>68</td></tr><tr><td>Gentoo</td><td>123</td></tr></table>"
5024
+ ],
5025
+ "text/plain": [
5026
+ "#<RedAmber::DataFrame : 3 x 2 Vectors, 0x000000000000f938>\n",
5027
+ " species count\n",
5028
+ " <string> <int64>\n",
5029
+ "1 Adelie 151\n",
5030
+ "2 Chinstrap 68\n",
5031
+ "3 Gentoo 123\n"
5032
+ ]
5033
+ },
5034
+ "execution_count": 149,
5035
+ "metadata": {},
5036
+ "output_type": "execute_result"
5037
+ }
5038
+ ],
5039
+ "source": [
5040
+ "penguins.pick(:species, :bill_length_mm, :bill_depth_mm).group(:species).count"
5041
+ ]
5042
+ },
5043
+ {
5044
+ "cell_type": "markdown",
5045
+ "id": "7c90b59b-918c-492c-ac5b-46b62b31d136",
5046
+ "metadata": {},
5047
+ "source": [
5048
+ "Grouping key comes first (leftmost) in the columns."
5049
+ ]
5050
+ },
5051
+ {
5052
+ "cell_type": "markdown",
5053
+ "id": "21c8a6fa-3f95-41ea-817f-ffc1011e8df9",
5054
+ "metadata": {},
5055
+ "source": [
5056
+ "## 50. Grouping with a block"
5057
+ ]
5058
+ },
5059
+ {
5060
+ "cell_type": "markdown",
5061
+ "id": "db89c8b4-8189-410d-abe9-eac8f440065c",
5062
+ "metadata": {},
5063
+ "source": [
5064
+ "`DataFrame#group` takes a block and we can specify multiple functions.\n",
5065
+ "\n",
5066
+ "Inside the block is the context of instance of Group. So we can use summary functions without the reciever.\n",
5067
+ "\n",
5068
+ "(Since 0.1.8)"
5069
+ ]
5070
+ },
5071
+ {
5072
+ "cell_type": "code",
5073
+ "execution_count": 150,
5074
+ "id": "913f576b-ec86-4e94-af05-7c656ea24cc2",
5075
+ "metadata": {},
5076
+ "outputs": [
5077
+ {
5078
+ "data": {
5079
+ "text/html": [
5080
+ "RedAmber::DataFrame <3 x 3 vectors> <table><tr><th>species</th><th>count</th><th>mean(body_mass_g)</th></tr><tr><td>Adelie</td><td>152</td><td>3700.662251655629</td></tr><tr><td>Chinstrap</td><td>68</td><td>3733.0882352941176</td></tr><tr><td>Gentoo</td><td>124</td><td>5076.016260162602</td></tr></table>"
5081
+ ],
5082
+ "text/plain": [
5083
+ "#<RedAmber::DataFrame : 3 x 3 Vectors, 0x000000000000f94c>\n",
5084
+ " species count mean(body_mass_g)\n",
5085
+ " <string> <int64> <double>\n",
5086
+ "1 Adelie 152 3700.7\n",
5087
+ "2 Chinstrap 68 3733.1\n",
5088
+ "3 Gentoo 124 5076.0\n"
5089
+ ]
5090
+ },
5091
+ "execution_count": 150,
5092
+ "metadata": {},
5093
+ "output_type": "execute_result"
5094
+ }
5095
+ ],
5096
+ "source": [
5097
+ "penguins.group(:species) { [count(:species), mean(:body_mass_g)] }"
5098
+ ]
5099
+ },
5100
+ {
5101
+ "cell_type": "markdown",
5102
+ "id": "e6dc3206-d327-4242-9908-253ad4a74759",
5103
+ "metadata": {},
5104
+ "source": [
5105
+ "`Group#summarize` accepts same block as `DataFrame#group`."
5106
+ ]
5107
+ },
5108
+ {
5109
+ "cell_type": "code",
5110
+ "execution_count": 151,
5111
+ "id": "67c7fc55-7b30-469c-bd0c-cda5732863fe",
5112
+ "metadata": {},
5113
+ "outputs": [
5114
+ {
5115
+ "data": {
5116
+ "text/html": [
5117
+ "RedAmber::DataFrame <3 x 7 vectors> <table><tr><th>species</th><th>count</th><th>mean(bill_length_mm)</th><th>mean(bill_depth_mm)</th><th>mean(flipper_length_mm)</th><th>mean(body_mass_g)</th><th>mean(year)</th></tr><tr><td>Adelie</td><td>152</td><td>38.79139072847684</td><td>18.346357615894032</td><td>189.95364238410596</td><td>3700.662251655629</td><td>2008.0131578947369</td></tr><tr><td>Chinstrap</td><td>68</td><td>48.83382352941177</td><td>18.420588235294115</td><td>195.8235294117647</td><td>3733.0882352941176</td><td>2007.9705882352941</td></tr><tr><td>Gentoo</td><td>124</td><td>47.504878048780476</td><td>14.982113821138206</td><td>217.1869918699187</td><td>5076.016260162602</td><td>2008.0806451612902</td></tr></table>"
5118
+ ],
5119
+ "text/plain": [
5120
+ "#<RedAmber::DataFrame : 3 x 7 Vectors, 0x000000000000f960>\n",
5121
+ " species count mean(bill_length_mm) mean(bill_depth_mm) ... mean(year)\n",
5122
+ " <string> <int64> <double> <double> ... <double>\n",
5123
+ "1 Adelie 152 38.8 18.3 ... 2008.0\n",
5124
+ "2 Chinstrap 68 48.8 18.4 ... 2008.0\n",
5125
+ "3 Gentoo 124 47.5 15.0 ... 2008.1\n"
5126
+ ]
5127
+ },
5128
+ "execution_count": 151,
5129
+ "metadata": {},
5130
+ "output_type": "execute_result"
5131
+ }
5132
+ ],
5133
+ "source": [
5134
+ "group.summarize { [count(:species), mean] }"
5135
+ ]
5136
+ },
5137
+ {
5138
+ "cell_type": "markdown",
5139
+ "id": "88682c8d-0ab6-4cee-8e59-5b6ad0ae5dac",
5140
+ "metadata": {},
5141
+ "source": [
5142
+ "## 51. Vector#shift"
5143
+ ]
5144
+ },
5145
+ {
5146
+ "cell_type": "markdown",
5147
+ "id": "c6dd1bc0-7146-4884-aac5-9874e829235e",
5148
+ "metadata": {},
5149
+ "source": [
5150
+ "`Vector#shift(amount = 1, fill: nil)`\n",
5151
+ "\n",
5152
+ "Shift vector's values by specified `amount`. Shifted space is filled by value `fill`.\n",
5153
+ "\n",
5154
+ "(Since 0.1.8)"
5155
+ ]
5156
+ },
5157
+ {
5158
+ "cell_type": "code",
5159
+ "execution_count": 152,
5160
+ "id": "013f2db6-3e1d-481f-a908-57605729b51d",
5161
+ "metadata": {},
5162
+ "outputs": [
5163
+ {
5164
+ "data": {
5165
+ "text/plain": [
5166
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f974>\n",
5167
+ "[nil, 1, 2, 3, 4]\n"
5168
+ ]
5169
+ },
5170
+ "execution_count": 152,
5171
+ "metadata": {},
5172
+ "output_type": "execute_result"
5173
+ }
5174
+ ],
5175
+ "source": [
5176
+ "vector = RedAmber::Vector.new([1, 2, 3, 4, 5])\n",
5177
+ "vector.shift"
5178
+ ]
5179
+ },
5180
+ {
5181
+ "cell_type": "code",
5182
+ "execution_count": 153,
5183
+ "id": "7625acd7-d6a0-4775-b5e0-ca87f95f4f28",
5184
+ "metadata": {},
5185
+ "outputs": [
5186
+ {
5187
+ "data": {
5188
+ "text/plain": [
5189
+ "#<RedAmber::Vector(:uint8, size=5):0x000000000000f988>\n",
5190
+ "[3, 4, 5, nil, nil]\n"
5191
+ ]
5192
+ },
5193
+ "execution_count": 153,
5194
+ "metadata": {},
5195
+ "output_type": "execute_result"
5196
+ }
5197
+ ],
5198
+ "source": [
5199
+ "vector.shift(-2)"
5200
+ ]
5201
+ },
5202
+ {
5203
+ "cell_type": "code",
5204
+ "execution_count": 154,
5205
+ "id": "34a9ac2a-2e3f-44bc-8ba7-c4487dc3528e",
5206
+ "metadata": {},
5207
+ "outputs": [
5208
+ {
5209
+ "data": {
5210
+ "text/plain": [
5211
+ "#<RedAmber::Vector(:double, size=5):0x000000000000f99c>\n",
5212
+ "[NaN, 1.0, 2.0, 3.0, 4.0]\n"
5213
+ ]
5214
+ },
5215
+ "execution_count": 154,
5216
+ "metadata": {},
5217
+ "output_type": "execute_result"
5218
+ }
5219
+ ],
5220
+ "source": [
5221
+ "vector.shift(fill: Float::NAN)"
5222
+ ]
5223
+ },
5224
+ {
5225
+ "cell_type": "markdown",
5226
+ "id": "39f305a6-5718-4e81-b08f-564fa93861cc",
5227
+ "metadata": {
5228
+ "tags": []
5229
+ },
5230
+ "source": [
5231
+ "## 52. From the Pandas cookbook (if-then)\n",
5232
+ "\n",
5233
+ "https://pandas.pydata.org/docs/user_guide/cookbook.html#if-then"
5234
+ ]
5235
+ },
5236
+ {
5237
+ "cell_type": "markdown",
5238
+ "id": "4f1d41dd-714a-4c68-af3b-a9080847f833",
5239
+ "metadata": {},
5240
+ "source": [
5241
+ "```python\n",
5242
+ "# by Python Pandas\n",
5243
+ "df = pd.DataFrame(\n",
5244
+ " {\"AAA\": [4, 5, 6, 7], \"BBB\": [10, 20, 30, 40], \"CCC\": [100, 50, -30, -50]}\n",
5245
+ ")\n",
5246
+ "df.loc[df.AAA >= 5, \"BBB\"] = -1\n",
5247
+ "\n",
5248
+ "# returns =>\n",
5249
+ " AAA BBB CCC\n",
5250
+ "0 4 10 100\n",
5251
+ "1 5 -1 50\n",
5252
+ "2 6 -1 -30\n",
5253
+ "3 7 -1 -50\n",
5254
+ "```"
5255
+ ]
5256
+ },
5257
+ {
5258
+ "cell_type": "code",
5259
+ "execution_count": 155,
5260
+ "id": "24774ccc-8f0f-4ce4-9ba0-bebed8781c38",
5261
+ "metadata": {},
5262
+ "outputs": [
5263
+ {
5264
+ "data": {
5265
+ "text/html": [
5266
+ "RedAmber::DataFrame <4 x 3 vectors> <table><tr><th>AAA</th><th>BBB</th><th>CCC</th></tr><tr><td>4</td><td>10</td><td>100</td></tr><tr><td>5</td><td>-1</td><td>50</td></tr><tr><td>6</td><td>-1</td><td>-30</td></tr><tr><td>7</td><td>-1</td><td>-50</td></tr></table>"
5267
+ ],
5268
+ "text/plain": [
5269
+ "#<RedAmber::DataFrame : 4 x 3 Vectors, 0x000000000000f9b0>\n",
5270
+ " AAA BBB CCC\n",
5271
+ " <uint8> <int8> <int8>\n",
5272
+ "1 4 10 100\n",
5273
+ "2 5 -1 50\n",
5274
+ "3 6 -1 -30\n",
5275
+ "4 7 -1 -50\n"
5276
+ ]
5277
+ },
5278
+ "execution_count": 155,
5279
+ "metadata": {},
5280
+ "output_type": "execute_result"
5281
+ }
5282
+ ],
5283
+ "source": [
5284
+ "# Red Amber\n",
5285
+ "df = DataFrame.new(\n",
5286
+ " \"AAA\": [4, 5, 6, 7], \"BBB\": [10, 20, 30, 40], \"CCC\": [100, 50, -30, -50] # You can omit {}\n",
5287
+ ")\n",
5288
+ "\n",
5289
+ "df.assign( BBB: df[:BBB].replace(df[:AAA] >= 5, -1) )"
5290
+ ]
5291
+ },
5292
+ {
5293
+ "cell_type": "markdown",
5294
+ "id": "c76ca2e3-e239-440b-923b-dfabb1a1c007",
5295
+ "metadata": {},
5296
+ "source": [
5297
+ "If you want to replace both :BBB and :CCC ;"
5298
+ ]
5299
+ },
5300
+ {
5301
+ "cell_type": "code",
5302
+ "execution_count": 156,
5303
+ "id": "3f97227b-cbee-4515-b76d-3514401967d9",
5304
+ "metadata": {},
5305
+ "outputs": [
5306
+ {
5307
+ "data": {
5308
+ "text/html": [
5309
+ "RedAmber::DataFrame <4 x 3 vectors> <table><tr><th>AAA</th><th>BBB</th><th>CCC</th></tr><tr><td>4</td><td>10</td><td>100</td></tr><tr><td>5</td><td>-1</td><td>-2</td></tr><tr><td>6</td><td>-1</td><td>-2</td></tr><tr><td>7</td><td>-1</td><td>-2</td></tr></table>"
5310
+ ],
5311
+ "text/plain": [
5312
+ "#<RedAmber::DataFrame : 4 x 3 Vectors, 0x000000000000f9c4>\n",
5313
+ " AAA BBB CCC\n",
5314
+ " <uint8> <int8> <int8>\n",
5315
+ "1 4 10 100\n",
5316
+ "2 5 -1 -2\n",
5317
+ "3 6 -1 -2\n",
5318
+ "4 7 -1 -2\n"
5319
+ ]
5320
+ },
5321
+ "execution_count": 156,
5322
+ "metadata": {},
5323
+ "output_type": "execute_result"
5324
+ }
5325
+ ],
5326
+ "source": [
5327
+ "df.assign do\n",
5328
+ " replacer = v(:AAA) >= 5 # Boolean Vector\n",
5329
+ " {\n",
5330
+ " BBB: v(:BBB).replace(replacer, -1),\n",
5331
+ " CCC: v(:CCC).replace(replacer, -2)\n",
5332
+ " }\n",
5333
+ "end"
5334
+ ]
5335
+ },
5336
+ {
5337
+ "cell_type": "markdown",
5338
+ "id": "4bf560f9-4393-4ed5-9994-24f8a93470fb",
5339
+ "metadata": {
5340
+ "tags": []
5341
+ },
5342
+ "source": [
5343
+ "## 53. From the Pandas cookbook (splitting)\n",
5344
+ "Split a frame with a boolean criterion\n",
5345
+ "\n",
5346
+ "https://pandas.pydata.org/docs/user_guide/cookbook.html#splitting"
5347
+ ]
5348
+ },
5349
+ {
5350
+ "cell_type": "markdown",
5351
+ "id": "fcf06cad-4a34-45e2-b8f8-8422914eb319",
5352
+ "metadata": {},
5353
+ "source": [
5354
+ "```python\n",
5355
+ "# by Python Pandas\n",
5356
+ "df = pd.DataFrame(\n",
5357
+ " {\"AAA\": [4, 5, 6, 7], \"BBB\": [10, 20, 30, 40], \"CCC\": [100, 50, -30, -50]}\n",
5358
+ ")\n",
5359
+ "df[df.AAA <= 5]\n",
5360
+ "\n",
5361
+ "# returns =>\n",
5362
+ " AAA BBB CCC\n",
5363
+ "0 4 10 100\n",
5364
+ "1 5 20 50\n",
5365
+ "\n",
5366
+ "df[df.AAA > 5]\n",
5367
+ "\n",
5368
+ "# returns =>\n",
5369
+ " AAA BBB CCC\n",
5370
+ "2 6 30 -30\n",
5371
+ "3 7 40 -50\n",
5372
+ "```"
5373
+ ]
5374
+ },
5375
+ {
5376
+ "cell_type": "code",
5377
+ "execution_count": 157,
5378
+ "id": "b08e74d4-aba8-4fb5-a815-5d5384e92f81",
5379
+ "metadata": {},
5380
+ "outputs": [
5381
+ {
5382
+ "data": {
5383
+ "text/html": [
5384
+ "RedAmber::DataFrame <2 x 3 vectors> <table><tr><th>AAA</th><th>BBB</th><th>CCC</th></tr><tr><td>4</td><td>10</td><td>100</td></tr><tr><td>5</td><td>20</td><td>50</td></tr></table>"
5385
+ ],
5386
+ "text/plain": [
5387
+ "#<RedAmber::DataFrame : 2 x 3 Vectors, 0x000000000000f9d8>\n",
5388
+ " AAA BBB CCC\n",
5389
+ " <uint8> <uint8> <int8>\n",
5390
+ "1 4 10 100\n",
5391
+ "2 5 20 50\n"
5392
+ ]
5393
+ },
5394
+ "execution_count": 157,
5395
+ "metadata": {},
5396
+ "output_type": "execute_result"
5397
+ }
5398
+ ],
5399
+ "source": [
5400
+ "# Red Amber\n",
5401
+ "df = DataFrame.new(\n",
5402
+ " # You can omit {}\n",
5403
+ " \"AAA\": [4, 5, 6, 7], \"BBB\": [10, 20, 30, 40], \"CCC\": [100, 50, -30, -50]\n",
5404
+ ")\n",
5405
+ "\n",
5406
+ "df.slice(df[:AAA] <= 5)"
5407
+ ]
5408
+ },
5409
+ {
5410
+ "cell_type": "code",
5411
+ "execution_count": 158,
5412
+ "id": "caa72796-ff7e-4275-849f-04698114ee08",
5413
+ "metadata": {},
5414
+ "outputs": [
5415
+ {
5416
+ "data": {
5417
+ "text/html": [
5418
+ "RedAmber::DataFrame <2 x 3 vectors> <table><tr><th>AAA</th><th>BBB</th><th>CCC</th></tr><tr><td>6</td><td>30</td><td>-30</td></tr><tr><td>7</td><td>40</td><td>-50</td></tr></table>"
5419
+ ],
5420
+ "text/plain": [
5421
+ "#<RedAmber::DataFrame : 2 x 3 Vectors, 0x000000000000f9ec>\n",
5422
+ " AAA BBB CCC\n",
5423
+ " <uint8> <uint8> <int8>\n",
5424
+ "1 6 30 -30\n",
5425
+ "2 7 40 -50\n"
5426
+ ]
5427
+ },
5428
+ "execution_count": 158,
5429
+ "metadata": {},
5430
+ "output_type": "execute_result"
5431
+ }
5432
+ ],
5433
+ "source": [
5434
+ "df.remove(df[:AAA] <= 5)\n",
5435
+ "# df.slice(df[:AAA] > 5) # do the same thing"
5436
+ ]
4855
5437
  }
4856
5438
  ],
4857
5439
  "metadata": {
4858
5440
  "kernelspec": {
4859
- "display_name": "Ruby 3.1.1",
5441
+ "display_name": "Ruby 3.1.2",
4860
5442
  "language": "ruby",
4861
5443
  "name": "ruby"
4862
5444
  },
@@ -4864,7 +5446,7 @@
4864
5446
  "file_extension": ".rb",
4865
5447
  "mimetype": "application/x-ruby",
4866
5448
  "name": "ruby",
4867
- "version": "3.1.1"
5449
+ "version": "3.1.2"
4868
5450
  }
4869
5451
  },
4870
5452
  "nbformat": 4,