df-script 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +125 -9
  2. package/dist/api.d.ts +3 -2
  3. package/dist/assets/index-DBhGK6Tp.css +1 -0
  4. package/dist/assets/index-DEJEV_tU.js +195 -0
  5. package/dist/columnExpressions/ColumnExpr.d.ts +14 -7
  6. package/dist/columnExpressions/ExprBase.d.ts +26 -12
  7. package/dist/columnExpressions/constants.d.ts +1 -0
  8. package/dist/columnExpressions/functions/all.d.ts +23 -0
  9. package/dist/columnExpressions/functions/coalesce.d.ts +31 -2
  10. package/dist/columnExpressions/functions/element.d.ts +26 -1
  11. package/dist/columnExpressions/functions/exclude.d.ts +24 -0
  12. package/dist/columnExpressions/functions/implode.d.ts +28 -0
  13. package/dist/columnExpressions/functions/lit.d.ts +27 -0
  14. package/dist/columnExpressions/functions/seq_range.d.ts +36 -0
  15. package/dist/columnExpressions/functions/struct.d.ts +31 -0
  16. package/dist/columnExpressions/functions/when.d.ts +38 -8
  17. package/dist/columnExpressions/index.d.ts +2 -1
  18. package/dist/columnExpressions/mixins/AggregationExpr.d.ts +336 -2
  19. package/dist/columnExpressions/mixins/ArithmeticExpr.d.ts +620 -10
  20. package/dist/columnExpressions/mixins/ArrayExpr.d.ts +567 -0
  21. package/dist/columnExpressions/mixins/ComparisonExpr.d.ts +353 -0
  22. package/dist/columnExpressions/mixins/LogicalExpr.d.ts +82 -0
  23. package/dist/columnExpressions/mixins/ManipulationExpr.d.ts +40 -0
  24. package/dist/columnExpressions/mixins/StringExpr.d.ts +658 -5
  25. package/dist/columnExpressions/mixins/StructExpr.d.ts +70 -0
  26. package/dist/columnExpressions/mixins/TemporalExpr.d.ts +530 -4
  27. package/dist/columnExpressions/mixins/WindowExpr.d.ts +313 -2
  28. package/dist/columnExpressions/types.d.ts +2 -0
  29. package/dist/constants.d.ts +11 -0
  30. package/dist/dataframe/dataframe.d.ts +933 -3
  31. package/dist/dataframe/grouped/grouped.d.ts +41 -6
  32. package/dist/dataframe/types.d.ts +1 -0
  33. package/dist/dataframe/utils.d.ts +1 -0
  34. package/dist/datatypes/index.d.ts +3 -2
  35. package/dist/datatypes/types.d.ts +52 -7
  36. package/dist/exceptions/index.d.ts +23 -0
  37. package/dist/functions/concat.d.ts +50 -0
  38. package/dist/functions/read_csv.d.ts +9 -0
  39. package/dist/functions/read_json.d.ts +7 -2
  40. package/dist/index.html +17 -0
  41. package/dist/index.js +6 -6
  42. package/dist/index.mjs +6 -0
  43. package/dist/types.d.ts +51 -16
  44. package/dist/utils/{list.d.ts → array.d.ts} +68 -15
  45. package/dist/utils/binary.d.ts +3 -0
  46. package/dist/utils/csv.d.ts +1 -0
  47. package/dist/utils/date.d.ts +23 -54
  48. package/dist/utils/index.d.ts +3 -2
  49. package/dist/utils/json.d.ts +1 -0
  50. package/dist/utils/number.d.ts +15 -29
  51. package/dist/utils/object.d.ts +27 -0
  52. package/dist/utils/string.d.ts +15 -5
  53. package/package.json +18 -4
  54. package/dist/api.js +0 -26
  55. package/dist/bundle.min.js +0 -1
  56. package/dist/columnExpressions/ColumnExpr.js +0 -219
  57. package/dist/columnExpressions/ExprBase.js +0 -92
  58. package/dist/columnExpressions/constants.js +0 -7
  59. package/dist/columnExpressions/functions/all.js +0 -11
  60. package/dist/columnExpressions/functions/coalesce.js +0 -44
  61. package/dist/columnExpressions/functions/element.js +0 -11
  62. package/dist/columnExpressions/functions/exclude.js +0 -13
  63. package/dist/columnExpressions/functions/implode.js +0 -7
  64. package/dist/columnExpressions/functions/lit.js +0 -17
  65. package/dist/columnExpressions/functions/repeat.d.ts +0 -47
  66. package/dist/columnExpressions/functions/repeat.js +0 -131
  67. package/dist/columnExpressions/functions/seq_range.js +0 -91
  68. package/dist/columnExpressions/functions/when.js +0 -85
  69. package/dist/columnExpressions/index.js +0 -38
  70. package/dist/columnExpressions/mixins/AggregationExpr.js +0 -76
  71. package/dist/columnExpressions/mixins/ArithmeticExpr.js +0 -131
  72. package/dist/columnExpressions/mixins/BooleanExpr.d.ts +0 -40
  73. package/dist/columnExpressions/mixins/BooleanExpr.js +0 -67
  74. package/dist/columnExpressions/mixins/ComparisonExpr.js +0 -250
  75. package/dist/columnExpressions/mixins/ListExpr.d.ts +0 -39
  76. package/dist/columnExpressions/mixins/ListExpr.js +0 -224
  77. package/dist/columnExpressions/mixins/LogicalExpr.js +0 -53
  78. package/dist/columnExpressions/mixins/ManipulationExpr.js +0 -71
  79. package/dist/columnExpressions/mixins/NumericExpr.d.ts +0 -92
  80. package/dist/columnExpressions/mixins/NumericExpr.js +0 -259
  81. package/dist/columnExpressions/mixins/StringExpr.js +0 -237
  82. package/dist/columnExpressions/mixins/StructExpr.js +0 -139
  83. package/dist/columnExpressions/mixins/TemporalExpr.js +0 -126
  84. package/dist/columnExpressions/mixins/WindowExpr.js +0 -151
  85. package/dist/columnExpressions/types.js +0 -2
  86. package/dist/columnExpressions/utils.js +0 -45
  87. package/dist/dataframe/constants.js +0 -7
  88. package/dist/dataframe/dataframe.js +0 -990
  89. package/dist/dataframe/grouped/grouped.js +0 -114
  90. package/dist/dataframe/index.js +0 -20
  91. package/dist/dataframe/types.js +0 -2
  92. package/dist/dataframe/utils.js +0 -307
  93. package/dist/datatypes/DataType.js +0 -76
  94. package/dist/datatypes/index.js +0 -46
  95. package/dist/datatypes/types/Binary.d.ts +0 -9
  96. package/dist/datatypes/types/Binary.js +0 -18
  97. package/dist/datatypes/types/Boolean.d.ts +0 -9
  98. package/dist/datatypes/types/Boolean.js +0 -19
  99. package/dist/datatypes/types/Date.d.ts +0 -8
  100. package/dist/datatypes/types/Date.js +0 -21
  101. package/dist/datatypes/types/Datetime.d.ts +0 -8
  102. package/dist/datatypes/types/Datetime.js +0 -17
  103. package/dist/datatypes/types/Decimal.d.ts +0 -10
  104. package/dist/datatypes/types/Decimal.js +0 -28
  105. package/dist/datatypes/types/Duration.d.ts +0 -8
  106. package/dist/datatypes/types/Duration.js +0 -17
  107. package/dist/datatypes/types/Float32.d.ts +0 -8
  108. package/dist/datatypes/types/Float32.js +0 -17
  109. package/dist/datatypes/types/Float64.d.ts +0 -8
  110. package/dist/datatypes/types/Float64.js +0 -17
  111. package/dist/datatypes/types/Int16.d.ts +0 -8
  112. package/dist/datatypes/types/Int16.js +0 -17
  113. package/dist/datatypes/types/Int32.d.ts +0 -8
  114. package/dist/datatypes/types/Int32.js +0 -17
  115. package/dist/datatypes/types/Int64.d.ts +0 -8
  116. package/dist/datatypes/types/Int64.js +0 -17
  117. package/dist/datatypes/types/Int8.d.ts +0 -8
  118. package/dist/datatypes/types/Int8.js +0 -17
  119. package/dist/datatypes/types/List.d.ts +0 -10
  120. package/dist/datatypes/types/List.js +0 -31
  121. package/dist/datatypes/types/Null.d.ts +0 -9
  122. package/dist/datatypes/types/Null.js +0 -17
  123. package/dist/datatypes/types/Object.d.ts +0 -9
  124. package/dist/datatypes/types/Object.js +0 -17
  125. package/dist/datatypes/types/Struct.d.ts +0 -14
  126. package/dist/datatypes/types/Struct.js +0 -39
  127. package/dist/datatypes/types/Time.d.ts +0 -8
  128. package/dist/datatypes/types/Time.js +0 -29
  129. package/dist/datatypes/types/UInt16.d.ts +0 -8
  130. package/dist/datatypes/types/UInt16.js +0 -17
  131. package/dist/datatypes/types/UInt32.d.ts +0 -8
  132. package/dist/datatypes/types/UInt32.js +0 -17
  133. package/dist/datatypes/types/UInt64.d.ts +0 -8
  134. package/dist/datatypes/types/UInt64.js +0 -17
  135. package/dist/datatypes/types/UInt8.d.ts +0 -8
  136. package/dist/datatypes/types/UInt8.js +0 -17
  137. package/dist/datatypes/types/Utf8.d.ts +0 -10
  138. package/dist/datatypes/types/Utf8.js +0 -20
  139. package/dist/datatypes/types.js +0 -290
  140. package/dist/exceptions/index.js +0 -46
  141. package/dist/exceptions/utils.js +0 -28
  142. package/dist/functions/concat.js +0 -260
  143. package/dist/functions/index.js +0 -9
  144. package/dist/functions/read_csv.js +0 -53
  145. package/dist/functions/read_json.js +0 -21
  146. package/dist/functions/transpose.d.ts +0 -7
  147. package/dist/functions/transpose.js +0 -84
  148. package/dist/types.js +0 -2
  149. package/dist/utils/boolean.d.ts +0 -1
  150. package/dist/utils/boolean.js +0 -18
  151. package/dist/utils/csv.js +0 -313
  152. package/dist/utils/date.js +0 -348
  153. package/dist/utils/guards.d.ts +0 -12
  154. package/dist/utils/guards.js +0 -112
  155. package/dist/utils/index.js +0 -23
  156. package/dist/utils/json.js +0 -217
  157. package/dist/utils/list.js +0 -361
  158. package/dist/utils/number.js +0 -401
  159. package/dist/utils/string.js +0 -209
@@ -1,224 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListExpr = exports.ListExprNamespace = void 0;
4
- const ExprBase_1 = require("../ExprBase");
5
- const utils_1 = require("../utils");
6
- const utils_2 = require("../../utils");
7
- const exceptions_1 = require("../../exceptions");
8
- const constants_1 = require("../constants");
9
- class ListExprNamespace {
10
- expr;
11
- constructor(expr) {
12
- this.expr = expr;
13
- }
14
- _deriveList(fn) {
15
- return (0, ExprBase_1.derive)(this.expr, (0, utils_1.kleeneUnary)((v) => {
16
- return (0, utils_2.isArrayOrTypedArray)(v) ? fn(v) : null;
17
- }));
18
- }
19
- all() {
20
- return this._deriveList((arr) => (0, utils_2.isArrayOfType)(arr, (x) => !!x, { mode: "every" }));
21
- }
22
- any() {
23
- return this._deriveList((arr) => (0, utils_2.isArrayOfType)(arr, (x) => !!x, { mode: "some" }));
24
- }
25
- contains(item) {
26
- return this._deriveList((arr) => arr.includes(item));
27
- }
28
- contains_all(items) {
29
- return this._deriveList((arr) => (0, utils_2.isArrayOfType)(items, (x) => arr.includes(x), { mode: "every" }));
30
- }
31
- contains_any(items) {
32
- return this._deriveList((arr) => (0, utils_2.isArrayOfType)(items, (x) => arr.includes(x), { mode: "some" }));
33
- }
34
- count_matches(item) {
35
- return this._deriveList((arr) => {
36
- let count = 0;
37
- const len = arr.length;
38
- for (let i = 0; i < len; i++) {
39
- if (arr[i] === item) {
40
- count++;
41
- }
42
- }
43
- return count;
44
- });
45
- }
46
- drop_nulls() {
47
- return this._deriveList((arr) => {
48
- const len = arr.length;
49
- const result = [];
50
- for (let i = 0; i < len; i++) {
51
- if (arr[i] != null)
52
- result.push(arr[i]);
53
- }
54
- return result;
55
- });
56
- }
57
- explode({ empty_as_null = true, keep_nulls = true } = {}) {
58
- return (0, ExprBase_1.derive)(this.expr, (vArray) => {
59
- const height = vArray.length;
60
- let newHeight = 0;
61
- for (let i = 0; i < height; i++) {
62
- const val = vArray[i];
63
- if ((0, utils_2.isArrayOrTypedArray)(val)) {
64
- newHeight += val.length || (empty_as_null ? 1 : 0);
65
- continue;
66
- }
67
- if (val != null) {
68
- newHeight += 1;
69
- continue;
70
- }
71
- if (keep_nulls) {
72
- newHeight += 1;
73
- }
74
- }
75
- const res = new Array(newHeight);
76
- const rowMap = new Int32Array(newHeight);
77
- let idx = 0;
78
- for (let i = 0; i < height; i++) {
79
- const val = vArray[i];
80
- if ((0, utils_2.isArrayOrTypedArray)(val)) {
81
- const len = val.length;
82
- if (len > 0) {
83
- for (let j = 0; j < len; j++) {
84
- rowMap[idx] = i;
85
- res[idx++] = val[j];
86
- }
87
- continue;
88
- }
89
- if (empty_as_null) {
90
- rowMap[idx] = i;
91
- res[idx++] = null;
92
- }
93
- continue;
94
- }
95
- if (val != null) {
96
- rowMap[idx] = i;
97
- res[idx++] = val;
98
- continue;
99
- }
100
- if (keep_nulls) {
101
- rowMap[idx] = i;
102
- res[idx++] = null;
103
- }
104
- }
105
- res.rowMap = rowMap;
106
- return res;
107
- });
108
- }
109
- first(null_on_oob = true) {
110
- return this.get(0, null_on_oob);
111
- }
112
- gather(indices, null_on_oob = true) {
113
- return this._deriveList((arr) => {
114
- const len = arr.length;
115
- const idxs = (0, utils_2.isArrayOrTypedArray)(indices) ? indices : [indices];
116
- const numIndices = idxs.length;
117
- const res = new Array(numIndices);
118
- for (let i = 0; i < numIndices; i++) {
119
- const index = idxs[i];
120
- const val = arr.at(index);
121
- if (val === undefined && !null_on_oob) {
122
- throw new exceptions_1.ComputeError(`Index ${index} is out of bounds for list of length ${len}`);
123
- }
124
- res[i] = val ?? null;
125
- }
126
- return res;
127
- });
128
- }
129
- gather_every(options = {}) {
130
- return this._deriveList((arr) => (0, utils_2.stepSliceList)(arr, options));
131
- }
132
- get(index, null_on_oob = true) {
133
- return this._deriveList((arr) => {
134
- const val = arr.at(index);
135
- if (val === undefined && !null_on_oob) {
136
- throw new exceptions_1.ComputeError(`Index ${index} is out of bounds for list of length ${arr.length}`);
137
- }
138
- return val ?? null;
139
- });
140
- }
141
- join(separator = ",", options = {}) {
142
- return this._deriveList((arr) => (0, utils_2.joinList)(arr, separator, options));
143
- }
144
- last(null_on_oob = true) {
145
- return this.get(-1, null_on_oob);
146
- }
147
- len() {
148
- return this.lengths();
149
- }
150
- lengths() {
151
- return this._deriveList((arr) => arr.length);
152
- }
153
- max() {
154
- return this._deriveList((arr) => (0, utils_2.getListStats)(arr).max);
155
- }
156
- mean() {
157
- return this._deriveList((arr) => (0, utils_2.getListStats)(arr).mean);
158
- }
159
- median() {
160
- return this._deriveList((arr) => (0, utils_2.computeMedian)(arr));
161
- }
162
- min() {
163
- return this._deriveList((arr) => (0, utils_2.getListStats)(arr).min);
164
- }
165
- mode() {
166
- return this._deriveList((arr) => (0, utils_2.computeMode)(arr));
167
- }
168
- n_unique(options = {}) {
169
- return this._deriveList((arr) => (0, utils_2.getUniqueListStats)(arr, options).count);
170
- }
171
- reverse() {
172
- return this._deriveList((arr) => arr.slice().reverse());
173
- }
174
- slice(offset, length) {
175
- return this._deriveList((arr) => {
176
- const len = arr.length;
177
- const start = offset < 0 ? Math.max(0, len + offset) : offset;
178
- const end = length !== undefined ? start + length : len;
179
- return arr.slice(start, end);
180
- });
181
- }
182
- sort(descending = false) {
183
- return this._deriveList((arr) => (0, utils_2.sortList)(arr, descending));
184
- }
185
- sum() {
186
- return this._deriveList((arr) => (0, utils_2.getListStats)(arr).sum);
187
- }
188
- unique(options = {}) {
189
- return this._deriveList((arr) => (0, utils_2.getUniqueListStats)(arr, options).values);
190
- }
191
- eval(expr) {
192
- return (0, ExprBase_1.derive)(this.expr, (vArray, columns) => {
193
- const height = vArray.length;
194
- const result = new Array(height);
195
- for (let i = 0; i < height; i++) {
196
- const val = vArray[i];
197
- if (!(0, utils_2.isArrayOrTypedArray)(val)) {
198
- result[i] = null;
199
- continue;
200
- }
201
- const subHeight = val.length;
202
- const subColumns = { ...columns, [constants_1.ELEMENT_MARKER]: val };
203
- const isGlobalAgg = expr.aggFn != null && (expr.partitionBy == null || expr.partitionBy.length === 0);
204
- if (isGlobalAgg) {
205
- const preOpsIdx = expr.groupingOpsIndex !== undefined ? expr.groupingOpsIndex : expr.ops.length;
206
- const preVal = expr.evaluatePre(preOpsIdx, subColumns, subHeight);
207
- const aggVal = expr.aggFn(Array.from(preVal));
208
- result[i] = expr.evaluatePost(preOpsIdx, [aggVal], subColumns);
209
- }
210
- else {
211
- result[i] = (0, utils_1.evaluateExpression)(expr, subColumns, subHeight);
212
- }
213
- }
214
- return result;
215
- });
216
- }
217
- }
218
- exports.ListExprNamespace = ListExprNamespace;
219
- class ListExpr extends ExprBase_1.ExprBase {
220
- get list() {
221
- return new ListExprNamespace(this);
222
- }
223
- }
224
- exports.ListExpr = ListExpr;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LogicalExpr = void 0;
4
- const ExprBase_1 = require("../ExprBase");
5
- const utils_1 = require("../utils");
6
- const utils_2 = require("../../utils");
7
- class LogicalExpr extends ExprBase_1.ExprBase {
8
- and(other) {
9
- return (0, ExprBase_1.derive)(this, (vArray, columns) => {
10
- const height = vArray.length;
11
- const otherVal = this._resolve(other, columns, height);
12
- const isOtherArray = (0, utils_2.isArrayOrTypedArray)(otherVal);
13
- const result = new Array(height);
14
- for (let i = 0; i < height; i++) {
15
- const v = vArray[i];
16
- const w = isOtherArray ? otherVal[i] : otherVal;
17
- if (v === false || w === false)
18
- result[i] = false;
19
- else if (v == null || w == null)
20
- result[i] = null;
21
- else
22
- result[i] = true;
23
- }
24
- return result;
25
- });
26
- }
27
- not() {
28
- return (0, ExprBase_1.derive)(this, (0, utils_1.kleeneUnary)((v) => !v));
29
- }
30
- or(other) {
31
- return (0, ExprBase_1.derive)(this, (vArray, columns) => {
32
- const height = vArray.length;
33
- const otherVal = this._resolve(other, columns, height);
34
- const isOtherArray = (0, utils_2.isArrayOrTypedArray)(otherVal);
35
- const result = new Array(height);
36
- for (let i = 0; i < height; i++) {
37
- const v = vArray[i];
38
- const w = isOtherArray ? otherVal[i] : otherVal;
39
- if (v === true || w === true)
40
- result[i] = true;
41
- else if (v == null || w == null)
42
- result[i] = null;
43
- else
44
- result[i] = false;
45
- }
46
- return result;
47
- });
48
- }
49
- xor(other) {
50
- return (0, ExprBase_1.derive)(this, (0, utils_1.kleeneBinary)(this, other, (v, w) => !!v !== !!w));
51
- }
52
- }
53
- exports.LogicalExpr = LogicalExpr;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ManipulationExpr = void 0;
4
- const ExprBase_1 = require("../ExprBase");
5
- const utils_1 = require("../../utils");
6
- class ManipulationExpr extends ExprBase_1.ExprBase {
7
- fill_null({ value = undefined, strategy = undefined, limit = undefined } = {}) {
8
- return (0, ExprBase_1.derive)(this, (vArray, columns) => {
9
- const height = vArray.length;
10
- const result = Array.from(vArray);
11
- if (strategy !== undefined) {
12
- if (strategy === "zero" || strategy === "one" || strategy === "min" || strategy === "max" || strategy === "mean") {
13
- let fillVal;
14
- if (strategy === "zero") {
15
- fillVal = 0;
16
- }
17
- else if (strategy === "one") {
18
- fillVal = 1;
19
- }
20
- else {
21
- const stats = (0, utils_1.getListStats)(vArray);
22
- fillVal = stats[strategy];
23
- }
24
- (0, utils_1.fillSequence)(result, fillVal, {
25
- mode: "constant",
26
- condition: (v) => v == null
27
- });
28
- }
29
- else if (strategy === "forward" || strategy === "backward") {
30
- const isForward = strategy === "forward";
31
- let lastVal = null;
32
- let consecCount = 0;
33
- (0, utils_1.fillSequence)(result, null, {
34
- mode: "independent",
35
- reverse: !isForward,
36
- step: ({ originalValue }) => {
37
- if (originalValue != null) {
38
- lastVal = originalValue;
39
- consecCount = 0;
40
- return originalValue;
41
- }
42
- if (lastVal !== null && (limit === undefined || consecCount < limit)) {
43
- consecCount++;
44
- return lastVal;
45
- }
46
- return null;
47
- }
48
- });
49
- }
50
- else {
51
- throw new Error(`Unsupported fill_null strategy: "${strategy}"`);
52
- }
53
- }
54
- else {
55
- const resolved = this._resolve(value, columns, height);
56
- const isArr = (0, utils_1.isArrayOrTypedArray)(resolved);
57
- (0, utils_1.fillSequence)(result, null, {
58
- mode: "independent",
59
- step: ({ index, originalValue }) => originalValue == null ? (isArr ? resolved[index] : resolved) : originalValue
60
- });
61
- }
62
- return result;
63
- });
64
- }
65
- reverse() {
66
- return (0, ExprBase_1.derive)(this, (vArray) => {
67
- return vArray.slice().reverse();
68
- });
69
- }
70
- }
71
- exports.ManipulationExpr = ManipulationExpr;
@@ -1,92 +0,0 @@
1
- import type { IExpr } from "../../types";
2
- import type { ExprConstructor, RandomOptions } from "../types";
3
- export declare const NumericExpr: <TBase extends ExprConstructor>(Base: TBase) => {
4
- new (...args: any[]): {
5
- abs(): /*elided*/ any;
6
- acos(): /*elided*/ any;
7
- acosh(): /*elided*/ any;
8
- add(val: number | IExpr | null): /*elided*/ any;
9
- asin(): /*elided*/ any;
10
- asinh(): /*elided*/ any;
11
- atan(): /*elided*/ any;
12
- atanh(): /*elided*/ any;
13
- cbrt(): /*elided*/ any;
14
- ceil(): /*elided*/ any;
15
- clip(lower?: number | null, upper?: number | null): /*elided*/ any;
16
- cos(): /*elided*/ any;
17
- cosh(): /*elided*/ any;
18
- degrees(): /*elided*/ any;
19
- div(val: number | IExpr | null): /*elided*/ any;
20
- exp(): /*elided*/ any;
21
- expm1(): /*elided*/ any;
22
- floor(): /*elided*/ any;
23
- floordiv(val: number | IExpr | null): /*elided*/ any;
24
- hypot(val: number | IExpr | null): /*elided*/ any;
25
- log(base?: number): /*elided*/ any;
26
- log1p(): /*elided*/ any;
27
- mod(val: number | IExpr | null): /*elided*/ any;
28
- mul(val: number | IExpr | null): /*elided*/ any;
29
- negate(): /*elided*/ any;
30
- pow(val: number | IExpr | null): /*elided*/ any;
31
- radians(): /*elided*/ any;
32
- rand(seed?: number, { min, max, integer }?: RandomOptions): /*elided*/ any;
33
- round(decimals?: number): /*elided*/ any;
34
- sign(): /*elided*/ any;
35
- sin(): /*elided*/ any;
36
- sinh(): /*elided*/ any;
37
- sqrt(): /*elided*/ any;
38
- sub(val: number | IExpr | null): /*elided*/ any;
39
- tan(): /*elided*/ any;
40
- tanh(): /*elided*/ any;
41
- trunc(): /*elided*/ any;
42
- avg(): /*elided*/ any;
43
- mean(): /*elided*/ any;
44
- sum(): /*elided*/ any;
45
- std(): /*elided*/ any;
46
- min(): /*elided*/ any;
47
- max(): /*elided*/ any;
48
- median(): /*elided*/ any;
49
- quantile(q: number): /*elided*/ any;
50
- count(options?: {
51
- includeNulls?: boolean;
52
- }): /*elided*/ any;
53
- cum_max(reverse?: boolean): /*elided*/ any;
54
- cum_min(reverse?: boolean): /*elided*/ any;
55
- cum_prod(reverse?: boolean): /*elided*/ any;
56
- cum_sum(reverse?: boolean): /*elided*/ any;
57
- rolling_max(windowSize: number): /*elided*/ any;
58
- rolling_mean(windowSize: number): /*elided*/ any;
59
- rolling_median(windowSize: number): /*elided*/ any;
60
- rolling_min(windowSize: number): /*elided*/ any;
61
- rolling_quantile(quantile: number, windowSize: number): /*elided*/ any;
62
- rolling_std(windowSize: number): /*elided*/ any;
63
- rolling_sum(windowSize: number): /*elided*/ any;
64
- ops: import("../../types").OpFn[];
65
- colName?: string;
66
- outputName?: string;
67
- isLiteral?: boolean;
68
- literalValue?: any;
69
- aggFn?: import("../../types").AggFn<any> | null;
70
- groupingOpsIndex?: number;
71
- partitionOpsIndex?: number;
72
- partitionBy?: (string | IExpr)[] | null;
73
- windowOp?: {
74
- type: string;
75
- [key: string]: any;
76
- } | null;
77
- isWindow?: boolean;
78
- alias(name: string): /*elided*/ any;
79
- cast(dataType: import("../../types").RegisteredDataType): /*elided*/ any;
80
- _resolve(val: any, columns: import("../../types").ColumnDict, height: number): import("../../types").ColumnData | any;
81
- evaluate(columns: import("../../types").ColumnDict, height: number): import("../../types").ColumnData;
82
- evaluatePreGrouping(columns: import("../../types").ColumnDict, height: number): import("../../types").ColumnData;
83
- evaluatePostGrouping(aggregatedArray: any[], columns: import("../../types").ColumnDict): import("../../types").ColumnData;
84
- evaluatePrePartition(columns: import("../../types").ColumnDict, height: number): import("../../types").ColumnData;
85
- evaluatePostPartition(aggregatedArray: any[], columns: import("../../types").ColumnDict): import("../../types").ColumnData;
86
- evaluateWindow?(groupPreValues: any[], partitionIndices: number[], currentIndex: number): any;
87
- debug(label?: string): /*elided*/ any;
88
- _window(evaluateWindow: (this: IExpr, groupPreValues: any[], partitionIndices: number[], currentIndex: number) => any): /*elided*/ any;
89
- _rolling(windowSize: number, aggFn: (vals: any[]) => any): /*elided*/ any;
90
- _deriveAgg(fn: import("../../types").AggFn<any>): /*elided*/ any;
91
- };
92
- } & TBase;