juxscript 1.1.239 → 1.1.243

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 (297) hide show
  1. package/index.js +7 -137
  2. package/lib/components/dataframe.ts +0 -569
  3. package/lib/components/tag.ts +68 -0
  4. package/lib/styles/shadcn.css +20 -7
  5. package/lib/utils/idgen.ts +6 -0
  6. package/package.json +5 -6
  7. package/index.d.ts +0 -239
  8. package/index.d.ts.map +0 -1
  9. package/lib/components/alert.d.ts +0 -36
  10. package/lib/components/alert.d.ts.map +0 -1
  11. package/lib/components/alert.js +0 -172
  12. package/lib/components/alert.ts +0 -219
  13. package/lib/components/app.d.ts +0 -89
  14. package/lib/components/app.d.ts.map +0 -1
  15. package/lib/components/app.js +0 -175
  16. package/lib/components/app.ts +0 -247
  17. package/lib/components/badge.d.ts +0 -26
  18. package/lib/components/badge.d.ts.map +0 -1
  19. package/lib/components/badge.js +0 -91
  20. package/lib/components/badge.ts +0 -118
  21. package/lib/components/base/Animations.d.ts +0 -36
  22. package/lib/components/base/Animations.d.ts.map +0 -1
  23. package/lib/components/base/Animations.js +0 -70
  24. package/lib/components/base/Animations.ts +0 -112
  25. package/lib/components/base/BaseComponent.d.ts +0 -294
  26. package/lib/components/base/BaseComponent.d.ts.map +0 -1
  27. package/lib/components/base/BaseComponent.js +0 -735
  28. package/lib/components/base/BaseComponent.ts +0 -884
  29. package/lib/components/base/FormInput.d.ts +0 -77
  30. package/lib/components/base/FormInput.d.ts.map +0 -1
  31. package/lib/components/base/FormInput.js +0 -171
  32. package/lib/components/base/FormInput.ts +0 -237
  33. package/lib/components/blueprint.d.ts +0 -40
  34. package/lib/components/blueprint.d.ts.map +0 -1
  35. package/lib/components/blueprint.js +0 -327
  36. package/lib/components/button.d.ts +0 -70
  37. package/lib/components/button.d.ts.map +0 -1
  38. package/lib/components/button.js +0 -177
  39. package/lib/components/button.ts +0 -237
  40. package/lib/components/card.d.ts +0 -35
  41. package/lib/components/card.d.ts.map +0 -1
  42. package/lib/components/card.js +0 -130
  43. package/lib/components/card.ts +0 -177
  44. package/lib/components/chart.d.ts +0 -49
  45. package/lib/components/chart.d.ts.map +0 -1
  46. package/lib/components/chart.js +0 -205
  47. package/lib/components/chart.ts +0 -254
  48. package/lib/components/checkbox.d.ts +0 -33
  49. package/lib/components/checkbox.d.ts.map +0 -1
  50. package/lib/components/checkbox.js +0 -202
  51. package/lib/components/checkbox.ts +0 -260
  52. package/lib/components/code.d.ts +0 -52
  53. package/lib/components/code.d.ts.map +0 -1
  54. package/lib/components/code.js +0 -201
  55. package/lib/components/code.ts +0 -260
  56. package/lib/components/container.d.ts +0 -60
  57. package/lib/components/container.d.ts.map +0 -1
  58. package/lib/components/container.js +0 -195
  59. package/lib/components/container.ts +0 -259
  60. package/lib/components/data.d.ts +0 -36
  61. package/lib/components/data.d.ts.map +0 -1
  62. package/lib/components/data.js +0 -110
  63. package/lib/components/data.ts +0 -135
  64. package/lib/components/dataframe/DataFrameSource.d.ts +0 -118
  65. package/lib/components/dataframe/DataFrameSource.d.ts.map +0 -1
  66. package/lib/components/dataframe/DataFrameSource.js +0 -421
  67. package/lib/components/dataframe/DataFrameSource.ts +0 -532
  68. package/lib/components/dataframe/ImportSettingsModal.d.ts +0 -60
  69. package/lib/components/dataframe/ImportSettingsModal.d.ts.map +0 -1
  70. package/lib/components/dataframe/ImportSettingsModal.js +0 -442
  71. package/lib/components/dataframe/ImportSettingsModal.ts +0 -531
  72. package/lib/components/dataframe.d.ts +0 -110
  73. package/lib/components/dataframe.d.ts.map +0 -1
  74. package/lib/components/dataframe.js +0 -470
  75. package/lib/components/datepicker.d.ts +0 -40
  76. package/lib/components/datepicker.d.ts.map +0 -1
  77. package/lib/components/datepicker.js +0 -193
  78. package/lib/components/datepicker.ts +0 -251
  79. package/lib/components/dialog.d.ts +0 -39
  80. package/lib/components/dialog.d.ts.map +0 -1
  81. package/lib/components/dialog.js +0 -131
  82. package/lib/components/dialog.ts +0 -178
  83. package/lib/components/divider.d.ts +0 -31
  84. package/lib/components/divider.d.ts.map +0 -1
  85. package/lib/components/divider.js +0 -72
  86. package/lib/components/divider.ts +0 -104
  87. package/lib/components/dropdown-menu.d.ts +0 -42
  88. package/lib/components/dropdown-menu.d.ts.map +0 -1
  89. package/lib/components/dropdown-menu.js +0 -177
  90. package/lib/components/dropdown-menu.ts +0 -214
  91. package/lib/components/dropdown.d.ts +0 -41
  92. package/lib/components/dropdown.d.ts.map +0 -1
  93. package/lib/components/dropdown.js +0 -136
  94. package/lib/components/dropdown.ts +0 -188
  95. package/lib/components/element.d.ts +0 -51
  96. package/lib/components/element.d.ts.map +0 -1
  97. package/lib/components/element.js +0 -209
  98. package/lib/components/element.ts +0 -271
  99. package/lib/components/event-chain.d.ts +0 -9
  100. package/lib/components/event-chain.d.ts.map +0 -1
  101. package/lib/components/event-chain.js +0 -33
  102. package/lib/components/fileupload.d.ts +0 -98
  103. package/lib/components/fileupload.d.ts.map +0 -1
  104. package/lib/components/fileupload.js +0 -351
  105. package/lib/components/fileupload.ts +0 -449
  106. package/lib/components/grid.d.ts +0 -88
  107. package/lib/components/grid.d.ts.map +0 -1
  108. package/lib/components/grid.js +0 -208
  109. package/lib/components/grid.ts +0 -295
  110. package/lib/components/heading.d.ts +0 -25
  111. package/lib/components/heading.d.ts.map +0 -1
  112. package/lib/components/heading.js +0 -83
  113. package/lib/components/heading.ts +0 -113
  114. package/lib/components/helpers.d.ts +0 -9
  115. package/lib/components/helpers.d.ts.map +0 -1
  116. package/lib/components/helpers.js +0 -30
  117. package/lib/components/helpers.ts +0 -41
  118. package/lib/components/hero.d.ts +0 -60
  119. package/lib/components/hero.d.ts.map +0 -1
  120. package/lib/components/hero.js +0 -239
  121. package/lib/components/hero.ts +0 -302
  122. package/lib/components/history/StateHistory.d.ts +0 -91
  123. package/lib/components/history/StateHistory.d.ts.map +0 -1
  124. package/lib/components/history/StateHistory.js +0 -154
  125. package/lib/components/history/StateHistory.ts +0 -200
  126. package/lib/components/icon.d.ts +0 -36
  127. package/lib/components/icon.d.ts.map +0 -1
  128. package/lib/components/icon.js +0 -135
  129. package/lib/components/icon.ts +0 -182
  130. package/lib/components/icons.d.ts +0 -25
  131. package/lib/components/icons.d.ts.map +0 -1
  132. package/lib/components/icons.js +0 -440
  133. package/lib/components/icons.ts +0 -464
  134. package/lib/components/image.d.ts +0 -42
  135. package/lib/components/image.d.ts.map +0 -1
  136. package/lib/components/image.js +0 -204
  137. package/lib/components/image.ts +0 -260
  138. package/lib/components/include.d.ts +0 -86
  139. package/lib/components/include.d.ts.map +0 -1
  140. package/lib/components/include.js +0 -238
  141. package/lib/components/include.ts +0 -281
  142. package/lib/components/input.d.ts +0 -85
  143. package/lib/components/input.d.ts.map +0 -1
  144. package/lib/components/input.js +0 -362
  145. package/lib/components/input.ts +0 -473
  146. package/lib/components/layer.d.ts +0 -72
  147. package/lib/components/layer.d.ts.map +0 -1
  148. package/lib/components/layer.js +0 -219
  149. package/lib/components/layer.ts +0 -304
  150. package/lib/components/link.d.ts +0 -41
  151. package/lib/components/link.d.ts.map +0 -1
  152. package/lib/components/link.js +0 -216
  153. package/lib/components/link.ts +0 -268
  154. package/lib/components/list.d.ts +0 -83
  155. package/lib/components/list.d.ts.map +0 -1
  156. package/lib/components/list.js +0 -314
  157. package/lib/components/list.ts +0 -423
  158. package/lib/components/loading.d.ts +0 -25
  159. package/lib/components/loading.d.ts.map +0 -1
  160. package/lib/components/loading.js +0 -76
  161. package/lib/components/loading.ts +0 -104
  162. package/lib/components/menu.d.ts +0 -38
  163. package/lib/components/menu.d.ts.map +0 -1
  164. package/lib/components/menu.js +0 -205
  165. package/lib/components/menu.ts +0 -279
  166. package/lib/components/modal.d.ts +0 -97
  167. package/lib/components/modal.d.ts.map +0 -1
  168. package/lib/components/modal.js +0 -463
  169. package/lib/components/modal.ts +0 -576
  170. package/lib/components/nav.d.ts +0 -46
  171. package/lib/components/nav.d.ts.map +0 -1
  172. package/lib/components/nav.js +0 -193
  173. package/lib/components/nav.ts +0 -261
  174. package/lib/components/paragraph.d.ts +0 -30
  175. package/lib/components/paragraph.d.ts.map +0 -1
  176. package/lib/components/paragraph.js +0 -93
  177. package/lib/components/paragraph.ts +0 -123
  178. package/lib/components/pen.d.ts +0 -125
  179. package/lib/components/pen.d.ts.map +0 -1
  180. package/lib/components/pen.js +0 -443
  181. package/lib/components/pen.ts +0 -567
  182. package/lib/components/progress.d.ts +0 -40
  183. package/lib/components/progress.d.ts.map +0 -1
  184. package/lib/components/progress.js +0 -116
  185. package/lib/components/progress.ts +0 -163
  186. package/lib/components/radio.d.ts +0 -43
  187. package/lib/components/radio.d.ts.map +0 -1
  188. package/lib/components/radio.js +0 -226
  189. package/lib/components/radio.ts +0 -303
  190. package/lib/components/registry.d.ts +0 -34
  191. package/lib/components/registry.d.ts.map +0 -1
  192. package/lib/components/registry.js +0 -163
  193. package/lib/components/registry.ts +0 -193
  194. package/lib/components/req.d.ts +0 -155
  195. package/lib/components/req.d.ts.map +0 -1
  196. package/lib/components/req.js +0 -253
  197. package/lib/components/req.ts +0 -303
  198. package/lib/components/script.d.ts +0 -14
  199. package/lib/components/script.d.ts.map +0 -1
  200. package/lib/components/script.js +0 -33
  201. package/lib/components/script.ts +0 -41
  202. package/lib/components/select.d.ts +0 -42
  203. package/lib/components/select.d.ts.map +0 -1
  204. package/lib/components/select.js +0 -209
  205. package/lib/components/select.ts +0 -281
  206. package/lib/components/sidebar.d.ts +0 -59
  207. package/lib/components/sidebar.d.ts.map +0 -1
  208. package/lib/components/sidebar.js +0 -298
  209. package/lib/components/sidebar.ts +0 -395
  210. package/lib/components/stack/BaseStack.d.ts +0 -65
  211. package/lib/components/stack/BaseStack.d.ts.map +0 -1
  212. package/lib/components/stack/BaseStack.js +0 -274
  213. package/lib/components/stack/BaseStack.ts +0 -328
  214. package/lib/components/stack/HStack.d.ts +0 -18
  215. package/lib/components/stack/HStack.d.ts.map +0 -1
  216. package/lib/components/stack/HStack.js +0 -22
  217. package/lib/components/stack/HStack.ts +0 -25
  218. package/lib/components/stack/VStack.d.ts +0 -19
  219. package/lib/components/stack/VStack.d.ts.map +0 -1
  220. package/lib/components/stack/VStack.js +0 -23
  221. package/lib/components/stack/VStack.ts +0 -26
  222. package/lib/components/stack/ZStack.d.ts +0 -18
  223. package/lib/components/stack/ZStack.d.ts.map +0 -1
  224. package/lib/components/stack/ZStack.js +0 -22
  225. package/lib/components/stack/ZStack.ts +0 -25
  226. package/lib/components/style.d.ts +0 -14
  227. package/lib/components/style.d.ts.map +0 -1
  228. package/lib/components/style.js +0 -33
  229. package/lib/components/style.ts +0 -41
  230. package/lib/components/switch.d.ts +0 -34
  231. package/lib/components/switch.d.ts.map +0 -1
  232. package/lib/components/switch.js +0 -209
  233. package/lib/components/switch.ts +0 -272
  234. package/lib/components/table.d.ts +0 -137
  235. package/lib/components/table.d.ts.map +0 -1
  236. package/lib/components/table.js +0 -1019
  237. package/lib/components/table.ts +0 -1225
  238. package/lib/components/tabs.d.ts +0 -53
  239. package/lib/components/tabs.d.ts.map +0 -1
  240. package/lib/components/tabs.js +0 -275
  241. package/lib/components/tabs.ts +0 -349
  242. package/lib/components/theme-toggle.d.ts +0 -45
  243. package/lib/components/theme-toggle.d.ts.map +0 -1
  244. package/lib/components/theme-toggle.js +0 -218
  245. package/lib/components/theme-toggle.ts +0 -297
  246. package/lib/components/tooltip.d.ts +0 -31
  247. package/lib/components/tooltip.d.ts.map +0 -1
  248. package/lib/components/tooltip.js +0 -112
  249. package/lib/components/tooltip.ts +0 -148
  250. package/lib/components/watcher.d.ts +0 -195
  251. package/lib/components/watcher.d.ts.map +0 -1
  252. package/lib/components/watcher.js +0 -241
  253. package/lib/components/watcher.ts +0 -261
  254. package/lib/components/write.d.ts +0 -107
  255. package/lib/components/write.d.ts.map +0 -1
  256. package/lib/components/write.js +0 -222
  257. package/lib/components/write.ts +0 -272
  258. package/lib/data/DataPipeline.d.ts +0 -113
  259. package/lib/data/DataPipeline.d.ts.map +0 -1
  260. package/lib/data/DataPipeline.js +0 -359
  261. package/lib/data/DataPipeline.ts +0 -452
  262. package/lib/facades/dataframe.jux +0 -0
  263. package/lib/globals.d.ts +0 -21
  264. package/lib/reactivity/state.d.ts +0 -36
  265. package/lib/reactivity/state.d.ts.map +0 -1
  266. package/lib/reactivity/state.js +0 -67
  267. package/lib/reactivity/state.ts +0 -78
  268. package/lib/storage/DataFrame.d.ts +0 -284
  269. package/lib/storage/DataFrame.d.ts.map +0 -1
  270. package/lib/storage/DataFrame.js +0 -1022
  271. package/lib/storage/DataFrame.ts +0 -1195
  272. package/lib/storage/DataFrameSource.d.ts +0 -158
  273. package/lib/storage/DataFrameSource.d.ts.map +0 -1
  274. package/lib/storage/DataFrameSource.js +0 -409
  275. package/lib/storage/DataFrameSource.ts +0 -556
  276. package/lib/storage/FileStorage.d.ts +0 -53
  277. package/lib/storage/FileStorage.d.ts.map +0 -1
  278. package/lib/storage/FileStorage.js +0 -80
  279. package/lib/storage/FileStorage.ts +0 -95
  280. package/lib/storage/IndexedDBDriver.d.ts +0 -75
  281. package/lib/storage/IndexedDBDriver.d.ts.map +0 -1
  282. package/lib/storage/IndexedDBDriver.js +0 -177
  283. package/lib/storage/IndexedDBDriver.ts +0 -226
  284. package/lib/storage/TabularDriver.d.ts +0 -118
  285. package/lib/storage/TabularDriver.d.ts.map +0 -1
  286. package/lib/storage/TabularDriver.js +0 -731
  287. package/lib/storage/TabularDriver.ts +0 -874
  288. package/lib/utils/codeparser.d.ts +0 -29
  289. package/lib/utils/codeparser.d.ts.map +0 -1
  290. package/lib/utils/codeparser.js +0 -409
  291. package/lib/utils/fetch.d.ts +0 -176
  292. package/lib/utils/fetch.d.ts.map +0 -1
  293. package/lib/utils/fetch.js +0 -427
  294. package/lib/utils/formatId.d.ts +0 -16
  295. package/lib/utils/formatId.d.ts.map +0 -1
  296. package/lib/utils/formatId.js +0 -27
  297. package/lib/utils/path-resolver.js +0 -23
@@ -1,284 +0,0 @@
1
- /**
2
- * DataFrame - A pandas-like data manipulation class for JavaScript
3
- *
4
- * Core capabilities:
5
- * - Column operations (select, drop, rename, reorder)
6
- * - Row operations (filter, head, tail, sample, slice)
7
- * - Data transformation (withColumn, apply, map)
8
- * - Aggregation (groupBy, agg, pivot)
9
- * - Joins (merge, concat, union)
10
- * - Type inference and conversion
11
- * - Sorting and indexing
12
- * - Statistics and describe
13
- * - Missing data handling
14
- */
15
- export type DataType = 'string' | 'number' | 'boolean' | 'date' | 'null' | 'mixed';
16
- export interface ColumnSchema {
17
- name: string;
18
- dtype: DataType;
19
- nullable: boolean;
20
- unique?: number;
21
- min?: any;
22
- max?: any;
23
- }
24
- export interface DataFrameOptions {
25
- inferTypes?: boolean;
26
- columns?: string[];
27
- }
28
- export declare class DataFrame {
29
- private _columns;
30
- private _data;
31
- private _height;
32
- private _schema;
33
- private _inferTypes;
34
- constructor(data: Record<string, any>[] | Record<string, any[]> | DataFrame, options?: DataFrameOptions);
35
- private _initFromRows;
36
- private _initFromColumns;
37
- private _inferSchema;
38
- private _inferColumnSchema;
39
- get columns(): string[];
40
- get height(): number;
41
- get width(): number;
42
- get shape(): [number, number];
43
- get dtypes(): Record<string, DataType>;
44
- get schema(): ColumnSchema[];
45
- get isEmpty(): boolean;
46
- /**
47
- * Get a column as an array
48
- */
49
- col(name: string): any[];
50
- /**
51
- * Get column (alias for col)
52
- */
53
- getColumn(name: string): any[];
54
- /**
55
- * Get a single row by index
56
- */
57
- row(index: number): Record<string, any>;
58
- /**
59
- * Get value at specific row and column
60
- */
61
- at(row: number, col: string): any;
62
- /**
63
- * Set value at specific row and column (mutates!)
64
- */
65
- setAt(row: number, col: string, value: any): this;
66
- /**
67
- * Convert to array of row objects
68
- */
69
- toRows(): Record<string, any>[];
70
- /**
71
- * Convert to column-oriented object
72
- */
73
- toColumns(): Record<string, any[]>;
74
- /**
75
- * Get distinct/unique values in a column
76
- */
77
- distinct(column: string): any[];
78
- /**
79
- * Alias for distinct
80
- */
81
- unique(column: string): any[];
82
- /**
83
- * Count occurrences of each value in a column
84
- */
85
- valueCounts(column: string): Record<any, number>;
86
- /**
87
- * Select specific columns
88
- */
89
- select(...cols: string[]): DataFrame;
90
- /**
91
- * Drop columns
92
- */
93
- drop(...cols: string[]): DataFrame;
94
- /**
95
- * Rename columns
96
- */
97
- rename(mapping: Record<string, string>): DataFrame;
98
- /**
99
- * Reorder columns
100
- */
101
- reorder(...cols: string[]): DataFrame;
102
- /**
103
- * Add or replace a column with computed values
104
- */
105
- withColumn(name: string, fn: (row: Record<string, any>, index: number) => any): DataFrame;
106
- /**
107
- * Add multiple computed columns at once
108
- */
109
- withColumns(columns: Record<string, (row: Record<string, any>, index: number) => any>): DataFrame;
110
- /**
111
- * Cast column to a specific type
112
- */
113
- asType(column: string, dtype: 'string' | 'number' | 'boolean' | 'date'): DataFrame;
114
- /**
115
- * Filter rows by predicate
116
- */
117
- filter(predicate: (row: Record<string, any>, index: number) => boolean): DataFrame;
118
- /**
119
- * Filter with SQL-like where clause
120
- */
121
- where(col: string, op: '==' | '!=' | '>' | '<' | '>=' | '<=' | 'in' | 'not in' | 'contains' | 'startsWith' | 'endsWith' | 'isNull' | 'notNull', value?: any): DataFrame;
122
- /**
123
- * Get first N rows
124
- */
125
- head(n?: number): DataFrame;
126
- /**
127
- * Get last N rows
128
- */
129
- tail(n?: number): DataFrame;
130
- /**
131
- * Slice rows by index range
132
- */
133
- slice(start: number, end?: number): DataFrame;
134
- /**
135
- * Get random sample of rows
136
- */
137
- sample(n: number, seed?: number): DataFrame;
138
- /**
139
- * Drop duplicate rows
140
- */
141
- dropDuplicates(columns?: string[]): DataFrame;
142
- /**
143
- * Drop rows with null values
144
- */
145
- dropna(columns?: string[]): DataFrame;
146
- /**
147
- * Fill null values
148
- */
149
- fillna(value: any, columns?: string[]): DataFrame;
150
- /**
151
- * Sort by column(s)
152
- */
153
- sort(column: string | string[], descending?: boolean | boolean[]): DataFrame;
154
- /**
155
- * Sort descending (shorthand)
156
- */
157
- sortDesc(column: string): DataFrame;
158
- /**
159
- * Group by column(s) and aggregate
160
- */
161
- groupBy(columns: string | string[]): GroupedDataFrame;
162
- /**
163
- * Aggregate entire DataFrame
164
- */
165
- agg(aggregations: Record<string, 'sum' | 'mean' | 'min' | 'max' | 'count' | 'first' | 'last' | ((values: any[]) => any)>): DataFrame;
166
- /**
167
- * Count rows
168
- */
169
- count(): number;
170
- /**
171
- * Sum of numeric column
172
- */
173
- sum(column: string): number;
174
- /**
175
- * Mean of numeric column
176
- */
177
- mean(column: string): number;
178
- /**
179
- * Min of column
180
- */
181
- min(column: string): any;
182
- /**
183
- * Max of column
184
- */
185
- max(column: string): any;
186
- /**
187
- * Merge with another DataFrame (SQL-like join)
188
- */
189
- merge(other: DataFrame, options?: {
190
- on?: string | string[];
191
- leftOn?: string | string[];
192
- rightOn?: string | string[];
193
- how?: 'inner' | 'left' | 'right' | 'outer';
194
- suffixes?: [string, string];
195
- }): DataFrame;
196
- /**
197
- * Concatenate DataFrames vertically (union)
198
- */
199
- concat(other: DataFrame | DataFrame[], ignoreIndex?: boolean): DataFrame;
200
- /**
201
- * Union (alias for concat)
202
- */
203
- union(other: DataFrame): DataFrame;
204
- /**
205
- * Apply function to each row
206
- */
207
- apply(fn: (row: Record<string, any>, index: number) => Record<string, any>): DataFrame;
208
- /**
209
- * Map function over a column
210
- */
211
- map(column: string, fn: (value: any, index: number) => any): DataFrame;
212
- /**
213
- * Pivot table
214
- */
215
- pivot(index: string, columns: string, values: string, aggFunc?: 'sum' | 'mean' | 'count' | 'first'): DataFrame;
216
- /**
217
- * Melt (unpivot) wide format to long format
218
- */
219
- melt(idVars: string[], valueVars?: string[], varName?: string, valueName?: string): DataFrame;
220
- /**
221
- * Describe numeric columns
222
- */
223
- describe(): Record<string, any>;
224
- /**
225
- * Get info about DataFrame
226
- */
227
- info(): {
228
- rows: number;
229
- columns: number;
230
- dtypes: Record<string, DataType>;
231
- nullCounts: Record<string, number>;
232
- memoryEstimate: number;
233
- };
234
- /**
235
- * Convert to CSV string
236
- */
237
- toCSV(delimiter?: string): string;
238
- /**
239
- * Convert to JSON string
240
- */
241
- toJSON(orient?: 'records' | 'columns' | 'split'): string;
242
- /**
243
- * Clone the DataFrame
244
- */
245
- clone(): DataFrame;
246
- /**
247
- * Print preview (for debugging)
248
- */
249
- print(n?: number): void;
250
- }
251
- /**
252
- * GroupedDataFrame for group-by operations
253
- */
254
- export declare class GroupedDataFrame {
255
- private _df;
256
- private _groupCols;
257
- private _groups;
258
- constructor(df: DataFrame, groupCols: string[]);
259
- /**
260
- * Aggregate groups
261
- */
262
- agg(aggregations: Record<string, 'sum' | 'mean' | 'min' | 'max' | 'count' | 'first' | 'last' | ((values: any[]) => any)>): DataFrame;
263
- /**
264
- * Count per group
265
- */
266
- count(): DataFrame;
267
- /**
268
- * Sum per group
269
- */
270
- sum(column: string): DataFrame;
271
- /**
272
- * Mean per group
273
- */
274
- mean(column: string): DataFrame;
275
- /**
276
- * Get number of groups
277
- */
278
- get ngroups(): number;
279
- /**
280
- * Get group keys
281
- */
282
- get groups(): string[];
283
- }
284
- //# sourceMappingURL=DataFrame.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataFrame.d.ts","sourceRoot":"","sources":["DataFrame.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnF,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,GAAG,CAAC,EAAE,GAAG,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MA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