Skip to content

Commit 55bf8c5

Browse files
committed
add note, re-run
1 parent 59c920d commit 55bf8c5

File tree

2 files changed

+121
-14
lines changed

2 files changed

+121
-14
lines changed

Examples/Arrow/ArrowSetSystem.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@
629629
"source": [
630630
"Notice in the above that the input `x` did not interfere with the calculation, and `d` was not copied forward. The idea is behavior during composition is very close to behavior during action/application, so we find more issues during composition.\n",
631631
"\n",
632-
"However, `.transform()` does not associate with composition as we have `b.transform(a.transform(d))` is not equal to `ab.transform(d)`."
632+
"However, `.transform()` does not associate with composition, or is not an action of this category, as we have `b.transform(a.transform(d))` is not equal to `ab.transform(d)`. `.transform()` does associate with the arrows of the stricter [identical column set category we demonstrated earlier](https://github.com/WinVector/data_algebra/blob/master/Examples/Arrow/CDesign.md), so it is an action of this category."
633633
]
634634
},
635635
{
@@ -1354,9 +1354,9 @@
13541354
"text": [
13551355
"SELECT \"a\" + \"b\" AS \"c\",\n",
13561356
" \"a\",\n",
1357-
" \"b\",\n",
13581357
" \"x\",\n",
13591358
" \"y\",\n",
1359+
" \"b\",\n",
13601360
" \"z\"\n",
13611361
"FROM \"bigger\"\n"
13621362
]

Examples/Arrow/ArrowSetSystem.md

Lines changed: 119 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,19 @@ d
160160

161161

162162
<div>
163-
163+
<style scoped>
164+
.dataframe tbody tr th:only-of-type {
165+
vertical-align: middle;
166+
}
167+
168+
.dataframe tbody tr th {
169+
vertical-align: top;
170+
}
171+
172+
.dataframe thead th {
173+
text-align: right;
174+
}
175+
</style>
164176
<table border="1" class="dataframe">
165177
<thead>
166178
<tr style="text-align: right;">
@@ -195,7 +207,19 @@ b.act_on(a.act_on(d))
195207

196208

197209
<div>
198-
210+
<style scoped>
211+
.dataframe tbody tr th:only-of-type {
212+
vertical-align: middle;
213+
}
214+
215+
.dataframe tbody tr th {
216+
vertical-align: top;
217+
}
218+
219+
.dataframe thead th {
220+
text-align: right;
221+
}
222+
</style>
199223
<table border="1" class="dataframe">
200224
<thead>
201225
<tr style="text-align: right;">
@@ -233,7 +257,19 @@ ab.act_on(d)
233257

234258

235259
<div>
236-
260+
<style scoped>
261+
.dataframe tbody tr th:only-of-type {
262+
vertical-align: middle;
263+
}
264+
265+
.dataframe tbody tr th {
266+
vertical-align: top;
267+
}
268+
269+
.dataframe thead th {
270+
text-align: right;
271+
}
272+
</style>
237273
<table border="1" class="dataframe">
238274
<thead>
239275
<tr style="text-align: right;">
@@ -292,7 +328,19 @@ ab.transform(excess_frame)
292328

293329

294330
<div>
295-
331+
<style scoped>
332+
.dataframe tbody tr th:only-of-type {
333+
vertical-align: middle;
334+
}
335+
336+
.dataframe tbody tr th {
337+
vertical-align: top;
338+
}
339+
340+
.dataframe thead th {
341+
text-align: right;
342+
}
343+
</style>
296344
<table border="1" class="dataframe">
297345
<thead>
298346
<tr style="text-align: right;">
@@ -317,7 +365,7 @@ ab.transform(excess_frame)
317365

318366
Notice in the above that the input `x` did not interfere with the calculation, and `d` was not copied forward. The idea is behavior during composition is very close to behavior during action/application, so we find more issues during composition.
319367

320-
However, `.transform()` does not associate with composition as we have `b.transform(a.transform(d))` is not equal to `ab.transform(d)`.
368+
However, `.transform()` does not associate with composition, or is not an action of this category, as we have `b.transform(a.transform(d))` is not equal to `ab.transform(d)`. `.transform()` does associate with the arrows of the stricter [identical column set category we demonstrated earlier](https://github.com/WinVector/data_algebra/blob/master/Examples/Arrow/CDesign.md), so it is an action of this category.
321369

322370

323371
```python
@@ -328,7 +376,19 @@ b.transform(a.transform(d))
328376

329377

330378
<div>
331-
379+
<style scoped>
380+
.dataframe tbody tr th:only-of-type {
381+
vertical-align: middle;
382+
}
383+
384+
.dataframe tbody tr th {
385+
vertical-align: top;
386+
}
387+
388+
.dataframe thead th {
389+
text-align: right;
390+
}
391+
</style>
332392
<table border="1" class="dataframe">
333393
<thead>
334394
<tr style="text-align: right;">
@@ -405,7 +465,19 @@ table_c
405465

406466

407467
<div>
408-
468+
<style scoped>
469+
.dataframe tbody tr th:only-of-type {
470+
vertical-align: middle;
471+
}
472+
473+
.dataframe tbody tr th {
474+
vertical-align: top;
475+
}
476+
477+
.dataframe thead th {
478+
text-align: right;
479+
}
480+
</style>
409481
<table border="1" class="dataframe">
410482
<thead>
411483
<tr style="text-align: right;">
@@ -446,7 +518,19 @@ c.act_on(table_c)
446518

447519

448520
<div>
449-
521+
<style scoped>
522+
.dataframe tbody tr th:only-of-type {
523+
vertical-align: middle;
524+
}
525+
526+
.dataframe tbody tr th {
527+
vertical-align: top;
528+
}
529+
530+
.dataframe thead th {
531+
text-align: right;
532+
}
533+
</style>
450534
<table border="1" class="dataframe">
451535
<thead>
452536
<tr style="text-align: right;">
@@ -478,7 +562,19 @@ c.transform(table_c)
478562

479563

480564
<div>
481-
565+
<style scoped>
566+
.dataframe tbody tr th:only-of-type {
567+
vertical-align: middle;
568+
}
569+
570+
.dataframe tbody tr th {
571+
vertical-align: top;
572+
}
573+
574+
.dataframe thead th {
575+
text-align: right;
576+
}
577+
</style>
482578
<table border="1" class="dataframe">
483579
<thead>
484580
<tr style="text-align: right;">
@@ -555,7 +651,19 @@ rab.act_on(excess_frame)
555651

556652

557653
<div>
558-
654+
<style scoped>
655+
.dataframe tbody tr th:only-of-type {
656+
vertical-align: middle;
657+
}
658+
659+
.dataframe tbody tr th {
660+
vertical-align: top;
661+
}
662+
663+
.dataframe thead th {
664+
text-align: right;
665+
}
666+
</style>
559667
<table border="1" class="dataframe">
560668
<thead>
561669
<tr style="text-align: right;">
@@ -675,9 +783,9 @@ print(bigger_a.to_sql(db_model=db_model, pretty=True))
675783

676784
SELECT "a" + "b" AS "c",
677785
"a",
678-
"b",
679786
"x",
680787
"y",
788+
"b",
681789
"z"
682790
FROM "bigger"
683791

@@ -692,4 +800,3 @@ And that is some of how the `data_algebra` works on our new set-oriented categor
692800
```python
693801

694802
```
695-

0 commit comments

Comments
 (0)