@nshiab/simple-data-analysis 5.19.8
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.
- package/LICENSE +21 -0
- package/README.md +678 -0
- package/esm/_dnt.shims.d.ts +2 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +57 -0
- package/esm/class/SimpleDB.d.ts +78 -0
- package/esm/class/SimpleDB.d.ts.map +1 -0
- package/esm/class/SimpleDB.js +75 -0
- package/esm/class/SimpleTable.d.ts +1201 -0
- package/esm/class/SimpleTable.d.ts.map +1 -0
- package/esm/class/SimpleTable.js +1011 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAI.d.ts +651 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAI.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAI.js +756 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAIPool.d.ts +199 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAIPool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAIPool.js +229 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/getEmbedding.d.ts +69 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/getEmbedding.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/getEmbedding.js +166 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/helpers/sleep.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/helpers/sleep.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/helpers/sleep.js +15 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/index.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/index.js +4 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addDots.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addDots.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addDots.js +19 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addLines.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addLines.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addLines.js +90 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/drawChart.d.ts +33 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/drawChart.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/drawChart.js +63 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisX.d.ts +19 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisX.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisX.js +45 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisY.d.ts +14 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisY.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisY.js +36 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getChartData.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getChartData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getChartData.js +19 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getColors.d.ts +10 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getColors.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getColors.js +21 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/makeBars.d.ts +17 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/makeBars.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/makeBars.js +65 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/prepChart.d.ts +17 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/prepChart.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/prepChart.js +156 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/validateDataTypes.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/validateDataTypes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/validateDataTypes.js +27 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logBarChart.d.ts +54 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logBarChart.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logBarChart.js +67 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logDotChart.d.ts +78 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logDotChart.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logDotChart.js +91 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logLineChart.d.ts +77 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logLineChart.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logLineChart.js +90 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/publishChartDW.d.ts +37 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/publishChartDW.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/publishChartDW.js +54 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/rewind.d.ts +42 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/rewind.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/rewind.js +177 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/saveChart.d.ts +44 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/saveChart.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/saveChart.js +562 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateAnnotationsDW.d.ts +112 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateAnnotationsDW.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateAnnotationsDW.js +151 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateDataDW.d.ts +128 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateDataDW.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateDataDW.js +146 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateNotesDW.d.ts +39 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateNotesDW.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateNotesDW.js +64 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/index.d.ts +11 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/index.js +10 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/arraysToData.d.ts +54 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/arraysToData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/arraysToData.js +63 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/camelCase.d.ts +29 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/camelCase.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/camelCase.js +47 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/capitalize.d.ts +29 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/capitalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/capitalize.js +31 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataAsCsv.d.ts +30 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataAsCsv.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataAsCsv.js +30 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataToArrays.d.ts +51 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataToArrays.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataToArrays.js +55 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatDate.d.ts +57 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatDate.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatDate.js +258 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatNumber.d.ts +70 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatNumber.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatNumber.js +157 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToCBCStyle.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToCBCStyle.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToCBCStyle.js +62 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToRCStyle.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToRCStyle.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToRCStyle.js +83 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/isValidDate.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/isValidDate.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/isValidDate.js +8 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToCbcStyle.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToCbcStyle.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToCbcStyle.js +39 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToRcStyle.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToRcStyle.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToRcStyle.js +29 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/wrapString.d.ts +31 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/wrapString.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/wrapString.js +79 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/normalizeString.d.ts +51 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/normalizeString.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/normalizeString.js +60 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/prettyDuration.d.ts +55 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/prettyDuration.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/prettyDuration.js +145 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/printTable.d.ts +43 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/printTable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/printTable.js +213 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/round.d.ts +77 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/round.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/round.js +100 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/index.d.ts +13 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/index.js +12 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/addSheetRows.d.ts +70 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/addSheetRows.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/addSheetRows.js +69 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/deleteFromBucket.d.ts +39 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/deleteFromBucket.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/deleteFromBucket.js +61 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/downloadFromBucket.d.ts +50 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/downloadFromBucket.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/downloadFromBucket.js +69 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/filesInBucket.d.ts +50 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/filesInBucket.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/filesInBucket.js +62 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/getSheetData.d.ts +127 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/getSheetData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/getSheetData.js +76 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/cleanData.d.ts +11 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/cleanData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/cleanData.js +19 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/logToSheet.d.ts +12 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/logToSheet.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/logToSheet.js +46 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/inBucket.d.ts +41 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/inBucket.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/inBucket.js +50 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/overwriteSheetData.d.ts +89 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/overwriteSheetData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/overwriteSheetData.js +116 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/toBucket.d.ts +72 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/toBucket.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/toBucket.js +107 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/index.d.ts +10 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/index.js +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/Simple.d.ts +66 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/Simple.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/Simple.js +94 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleDB.d.ts +487 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleDB.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleDB.js +807 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleTable.d.ts +4408 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleTable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleTable.js +5401 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/accumulateQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/accumulateQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/accumulateQuery.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/camelCase.d.ts +30 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/camelCase.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/camelCase.js +45 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/capitalize.d.ts +28 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/capitalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/capitalize.js +33 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/checkVssIndexes.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/checkVssIndexes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/checkVssIndexes.js +16 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanCache.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanCache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanCache.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanPath.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanPath.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanPath.js +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanSQL.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanSQL.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanSQL.js +24 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/concatenateRowQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/concatenateRowQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/concatenateRowQuery.js +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/convertForJS.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/convertForJS.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/convertForJS.js +39 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/createDirectory.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/createDirectory.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/createDirectory.js +10 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/csvFormat.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/csvFormat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/csvFormat.js +165 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/dataToArrays.d.ts +51 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/dataToArrays.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/dataToArrays.js +55 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/extractTypes.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/extractTypes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/extractTypes.js +11 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/findGeoColumn.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/findGeoColumn.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/findGeoColumn.js +18 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatDate.d.ts +34 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatDate.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatDate.js +69 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatNumber.d.ts +46 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatNumber.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatNumber.js +122 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getCombinations.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getCombinations.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getCombinations.js +24 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getExtension.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getExtension.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getExtension.js +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getIdenticalColumns.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getIdenticalColumns.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getIdenticalColumns.js +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getName.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getName.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getName.js +14 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjection.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjection.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjection.js +22 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjectionParquet.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjectionParquet.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjectionParquet.js +24 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/index.d.ts +20 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/index.js +19 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/keepNumericalColumns.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/keepNumericalColumns.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/keepNumericalColumns.js +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/logData.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/logData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/logData.js +48 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/mergeOptions.d.ts +28 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/mergeOptions.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/mergeOptions.js +12 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/nestQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/nestQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/nestQuery.js +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseDuckDBType.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseDuckDBType.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseDuckDBType.js +38 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseTypes.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseTypes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseTypes.js +35 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseValue.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseValue.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseValue.js +20 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/prettyDuration.d.ts +55 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/prettyDuration.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/prettyDuration.js +145 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/printTable.d.ts +47 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/printTable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/printTable.js +217 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/queryDB.d.ts +19 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/queryDB.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/queryDB.js +62 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/rewind.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/rewind.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/rewind.js +1293 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/runQuery.d.ts +14 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/runQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/runQuery.js +26 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/setDbProps.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/setDbProps.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/setDbProps.js +25 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/shouldFlipBeforeExport.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/shouldFlipBeforeExport.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/shouldFlipBeforeExport.js +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringToArray.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringToArray.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringToArray.js +11 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDates.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDates.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDates.js +14 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDatesInvert.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDatesInvert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDatesInvert.js +14 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unifyColumns.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unifyColumns.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unifyColumns.js +21 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unnestQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unnestQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unnestQuery.js +8 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/wrapString.d.ts +35 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/wrapString.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/wrapString.js +83 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeDataAsArrays.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeDataAsArrays.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeDataAsArrays.js +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeProjectionsAndIndexes.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeProjectionsAndIndexes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeProjectionsAndIndexes.js +29 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.d.ts +31 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.js +30 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/aggregateGeoQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/aggregateGeoQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/aggregateGeoQuery.js +24 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/binsQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/binsQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/binsQuery.js +40 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/bm25.d.ts +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/bm25.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/bm25.js +48 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cache.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cache.js +133 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/capitalizeQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/capitalizeQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/capitalizeQuery.js +8 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneColumn.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneColumn.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneColumn.js +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneQuery.js +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/concatenateQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/concatenateQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/concatenateQuery.js +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/convertQuery.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/convertQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/convertQuery.js +78 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlations.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlations.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlations.js +40 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlationsQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlationsQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlationsQuery.js +26 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createFtsIndex.d.ts +11 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createFtsIndex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createFtsIndex.js +28 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createVssIndex.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createVssIndex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createVssIndex.js +38 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/crossJoinQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/crossJoinQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/crossJoinQuery.js +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/distanceQuery.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/distanceQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/distanceQuery.js +42 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fill.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fill.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fill.js +60 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyClean.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyClean.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyClean.js +194 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoin.d.ts +8 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoin.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoin.js +57 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoinQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoinQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoinQuery.js +19 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getBottom.d.ts +8 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getBottom.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getBottom.js +22 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getColumns.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getColumns.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getColumns.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getDescription.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getDescription.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getDescription.js +20 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getFirstRow.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getFirstRow.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getFirstRow.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getGeoData.d.ts +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getGeoData.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getGeoData.js +41 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getLastRow.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getLastRow.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getLastRow.js +19 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMax.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMax.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMax.js +18 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMean.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMean.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMean.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMedian.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMedian.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMedian.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMin.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMin.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMin.js +18 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbCharacters.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbCharacters.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbCharacters.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbRows.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbRows.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbRows.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getQuantile.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getQuantile.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getQuantile.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSkew.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSkew.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSkew.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getStdDev.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getStdDev.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getStdDev.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSum.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSum.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSum.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTableNames.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTableNames.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTableNames.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTop.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTop.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTop.js +14 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTypes.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTypes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTypes.js +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getUniques.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getUniques.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getUniques.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getValues.d.ts +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getValues.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getValues.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getVar.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getVar.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getVar.js +17 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/insertRowsQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/insertRowsQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/insertRowsQuery.js +11 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/join.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/join.js +63 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeo.d.ts +10 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeo.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeo.js +76 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeoQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeoQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeoQuery.js +55 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinQuery.js +21 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/keepQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/keepQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/keepQuery.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressionQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressionQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressionQuery.js +37 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressions.d.ts +9 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressions.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressions.js +43 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadArray.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadArray.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadArray.js +78 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadDataQuery.d.ts +23 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadDataQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadDataQuery.js +77 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/lowerQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/lowerQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/lowerQuery.js +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeQuery.js +22 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeString.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeString.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeString.js +26 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/outliersIQRQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/outliersIQRQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/outliersIQRQuery.js +31 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsHorizontalQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsHorizontalQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsHorizontalQuery.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsVerticalQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsVerticalQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsVerticalQuery.js +19 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/quantilesQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/quantilesQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/quantilesQuery.js +12 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/ranksQuery.d.ts +6 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/ranksQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/ranksQuery.js +12 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeDuplicatesQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeDuplicatesQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeDuplicatesQuery.js +12 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissing.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissing.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissing.js +21 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissingQuery.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissingQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissingQuery.js +43 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeQuery.js +15 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/renameColumnQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/renameColumnQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/renameColumnQuery.js +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceNullsQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceNullsQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceNullsQuery.js +10 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceQuery.js +24 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/rollingQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/rollingQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/rollingQuery.js +33 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/roundQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/roundQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/roundQuery.js +16 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/selectRowsQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/selectRowsQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/selectRowsQuery.js +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/sortQuery.d.ts +8 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/sortQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/sortQuery.js +18 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/splitSpread.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/splitSpread.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/splitSpread.js +61 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarize.d.ts +13 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarize.js +60 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarizeQuery.d.ts +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarizeQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarizeQuery.js +112 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/trimQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/trimQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/trimQuery.js +29 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/truncateQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/truncateQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/truncateQuery.js +3 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/upperQuery.d.ts +2 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/upperQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/upperQuery.js +7 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeDataQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeDataQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeDataQuery.js +44 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeGeoDataQuery.d.ts +4 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeGeoDataQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeGeoDataQuery.js +16 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/zScoreQuery.d.ts +5 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/zScoreQuery.d.ts.map +1 -0
- package/esm/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/zScoreQuery.js +23 -0
- package/esm/helpers/getRRFRanking.d.ts +8 -0
- package/esm/helpers/getRRFRanking.d.ts.map +1 -0
- package/esm/helpers/getRRFRanking.js +21 -0
- package/esm/helpers/sleep.d.ts +5 -0
- package/esm/helpers/sleep.d.ts.map +1 -0
- package/esm/helpers/sleep.js +23 -0
- package/esm/helpers/tryAI.d.ts +36 -0
- package/esm/helpers/tryAI.d.ts.map +1 -0
- package/esm/helpers/tryAI.js +75 -0
- package/esm/helpers/tryEmbedding.d.ts +15 -0
- package/esm/helpers/tryEmbedding.d.ts.map +1 -0
- package/esm/helpers/tryEmbedding.js +5 -0
- package/esm/index.d.ts +31 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +30 -0
- package/esm/methods/aiEmbeddings.d.ts +21 -0
- package/esm/methods/aiEmbeddings.d.ts.map +1 -0
- package/esm/methods/aiEmbeddings.js +50 -0
- package/esm/methods/aiQuery.d.ts +21 -0
- package/esm/methods/aiQuery.d.ts.map +1 -0
- package/esm/methods/aiQuery.js +34 -0
- package/esm/methods/aiRAG.d.ts +49 -0
- package/esm/methods/aiRAG.d.ts.map +1 -0
- package/esm/methods/aiRAG.js +105 -0
- package/esm/methods/aiRowByRow.d.ts +35 -0
- package/esm/methods/aiRowByRow.d.ts.map +1 -0
- package/esm/methods/aiRowByRow.js +42 -0
- package/esm/methods/aiRowByRowPool.d.ts +36 -0
- package/esm/methods/aiRowByRowPool.d.ts.map +1 -0
- package/esm/methods/aiRowByRowPool.js +137 -0
- package/esm/methods/aiVectorSimilarity.d.ts +14 -0
- package/esm/methods/aiVectorSimilarity.d.ts.map +1 -0
- package/esm/methods/aiVectorSimilarity.js +54 -0
- package/esm/methods/hybridSearch.d.ts +38 -0
- package/esm/methods/hybridSearch.d.ts.map +1 -0
- package/esm/methods/hybridSearch.js +235 -0
- package/esm/methods/logHistogram.d.ts +8 -0
- package/esm/methods/logHistogram.d.ts.map +1 -0
- package/esm/methods/logHistogram.js +39 -0
- package/esm/package.json +3 -0
- package/package.json +42 -0
- package/script/_dnt.shims.d.ts +2 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +60 -0
- package/script/class/SimpleDB.d.ts +78 -0
- package/script/class/SimpleDB.d.ts.map +1 -0
- package/script/class/SimpleDB.js +81 -0
- package/script/class/SimpleTable.d.ts +1201 -0
- package/script/class/SimpleTable.d.ts.map +1 -0
- package/script/class/SimpleTable.js +1017 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAI.d.ts +651 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAI.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAI.js +795 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAIPool.d.ts +199 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAIPool.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/askAIPool.js +235 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/getEmbedding.d.ts +69 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/getEmbedding.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/getEmbedding.js +205 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/helpers/sleep.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/helpers/sleep.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/ai/helpers/sleep.js +18 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/index.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/index.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-ai/1.2.18/src/index.js +12 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addDots.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addDots.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addDots.js +22 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addLines.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addLines.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/addLines.js +93 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/drawChart.d.ts +33 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/drawChart.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/drawChart.js +69 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisX.d.ts +19 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisX.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisX.js +48 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisY.d.ts +14 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisY.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getAxisY.js +39 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getChartData.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getChartData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getChartData.js +22 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getColors.d.ts +10 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getColors.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/getColors.js +24 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/makeBars.d.ts +17 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/makeBars.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/makeBars.js +68 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/prepChart.d.ts +17 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/prepChart.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/prepChart.js +162 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/validateDataTypes.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/validateDataTypes.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/helpers/validateDataTypes.js +30 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logBarChart.d.ts +54 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logBarChart.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logBarChart.js +73 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logDotChart.d.ts +78 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logDotChart.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logDotChart.js +97 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logLineChart.d.ts +77 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logLineChart.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/logLineChart.js +96 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/publishChartDW.d.ts +37 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/publishChartDW.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/publishChartDW.js +60 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/rewind.d.ts +42 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/rewind.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/rewind.js +180 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/saveChart.d.ts +44 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/saveChart.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/saveChart.js +598 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateAnnotationsDW.d.ts +112 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateAnnotationsDW.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateAnnotationsDW.js +157 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateDataDW.d.ts +128 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateDataDW.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateDataDW.js +152 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateNotesDW.d.ts +39 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateNotesDW.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/dataviz/updateNotesDW.js +70 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/index.d.ts +11 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/index.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-dataviz/1.0.10/src/index.js +24 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/arraysToData.d.ts +54 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/arraysToData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/arraysToData.js +66 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/camelCase.d.ts +29 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/camelCase.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/camelCase.js +53 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/capitalize.d.ts +29 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/capitalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/capitalize.js +34 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataAsCsv.d.ts +30 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataAsCsv.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataAsCsv.js +33 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataToArrays.d.ts +51 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataToArrays.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/dataToArrays.js +58 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatDate.d.ts +57 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatDate.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatDate.js +264 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatNumber.d.ts +70 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatNumber.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/formatNumber.js +163 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToCBCStyle.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToCBCStyle.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToCBCStyle.js +65 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToRCStyle.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToRCStyle.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/dateToRCStyle.js +86 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/isValidDate.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/isValidDate.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/isValidDate.js +11 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToCbcStyle.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToCbcStyle.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToCbcStyle.js +42 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToRcStyle.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToRcStyle.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/transformPositionToRcStyle.js +32 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/wrapString.d.ts +31 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/wrapString.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/helpers/wrapString.js +82 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/normalizeString.d.ts +51 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/normalizeString.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/normalizeString.js +63 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/prettyDuration.d.ts +55 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/prettyDuration.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/prettyDuration.js +148 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/printTable.d.ts +43 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/printTable.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/printTable.js +219 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/round.d.ts +77 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/round.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/format/round.js +103 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/index.d.ts +13 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/index.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-format/1.1.5/src/index.js +28 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/addSheetRows.d.ts +70 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/addSheetRows.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/addSheetRows.js +75 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/deleteFromBucket.d.ts +39 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/deleteFromBucket.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/deleteFromBucket.js +67 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/downloadFromBucket.d.ts +50 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/downloadFromBucket.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/downloadFromBucket.js +75 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/filesInBucket.d.ts +50 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/filesInBucket.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/filesInBucket.js +68 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/getSheetData.d.ts +127 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/getSheetData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/getSheetData.js +82 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/cleanData.d.ts +11 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/cleanData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/cleanData.js +22 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/logToSheet.d.ts +12 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/logToSheet.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/helpers/logToSheet.js +52 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/inBucket.d.ts +41 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/inBucket.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/inBucket.js +56 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/overwriteSheetData.d.ts +89 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/overwriteSheetData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/overwriteSheetData.js +122 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/toBucket.d.ts +72 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/toBucket.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/google/toBucket.js +113 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/index.d.ts +10 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/index.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/journalism-google/1.0.6/src/index.js +22 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/Simple.d.ts +66 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/Simple.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/Simple.js +97 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleDB.d.ts +487 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleDB.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleDB.js +813 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleTable.d.ts +4408 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleTable.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/class/SimpleTable.js +5407 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/accumulateQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/accumulateQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/accumulateQuery.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/camelCase.d.ts +30 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/camelCase.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/camelCase.js +51 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/capitalize.d.ts +28 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/capitalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/capitalize.js +36 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/checkVssIndexes.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/checkVssIndexes.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/checkVssIndexes.js +19 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanCache.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanCache.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanCache.js +20 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanPath.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanPath.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanPath.js +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanSQL.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanSQL.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/cleanSQL.js +27 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/concatenateRowQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/concatenateRowQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/concatenateRowQuery.js +12 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/convertForJS.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/convertForJS.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/convertForJS.js +42 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/createDirectory.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/createDirectory.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/createDirectory.js +13 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/csvFormat.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/csvFormat.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/csvFormat.js +168 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/dataToArrays.d.ts +51 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/dataToArrays.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/dataToArrays.js +58 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/extractTypes.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/extractTypes.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/extractTypes.js +14 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/findGeoColumn.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/findGeoColumn.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/findGeoColumn.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatDate.d.ts +34 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatDate.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatDate.js +72 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatNumber.d.ts +46 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatNumber.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/formatNumber.js +125 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getCombinations.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getCombinations.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getCombinations.js +26 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getExtension.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getExtension.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getExtension.js +12 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getIdenticalColumns.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getIdenticalColumns.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getIdenticalColumns.js +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getName.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getName.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getName.js +17 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjection.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjection.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjection.js +28 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjectionParquet.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjectionParquet.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/getProjectionParquet.js +30 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/index.d.ts +20 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/index.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/index.js +30 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/keepNumericalColumns.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/keepNumericalColumns.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/keepNumericalColumns.js +16 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/logData.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/logData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/logData.js +54 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/mergeOptions.d.ts +28 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/mergeOptions.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/mergeOptions.js +15 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/nestQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/nestQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/nestQuery.js +19 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseDuckDBType.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseDuckDBType.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseDuckDBType.js +41 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseTypes.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseTypes.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseTypes.js +38 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseValue.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseValue.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/parseValue.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/prettyDuration.d.ts +55 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/prettyDuration.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/prettyDuration.js +148 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/printTable.d.ts +47 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/printTable.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/printTable.js +223 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/queryDB.d.ts +19 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/queryDB.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/queryDB.js +68 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/rewind.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/rewind.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/rewind.js +1295 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/runQuery.d.ts +14 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/runQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/runQuery.js +32 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/setDbProps.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/setDbProps.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/setDbProps.js +28 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/shouldFlipBeforeExport.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/shouldFlipBeforeExport.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/shouldFlipBeforeExport.js +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringToArray.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringToArray.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringToArray.js +14 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDates.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDates.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDates.js +17 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDatesInvert.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDatesInvert.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/stringifyDatesInvert.js +17 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unifyColumns.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unifyColumns.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unifyColumns.js +24 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unnestQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unnestQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/unnestQuery.js +11 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/wrapString.d.ts +35 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/wrapString.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/wrapString.js +86 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeDataAsArrays.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeDataAsArrays.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeDataAsArrays.js +19 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeProjectionsAndIndexes.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeProjectionsAndIndexes.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/helpers/writeProjectionsAndIndexes.js +32 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.d.ts +31 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.js +38 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/aggregateGeoQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/aggregateGeoQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/aggregateGeoQuery.js +30 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/binsQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/binsQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/binsQuery.js +43 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/bm25.d.ts +17 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/bm25.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/bm25.js +54 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cache.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cache.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cache.js +139 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/capitalizeQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/capitalizeQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/capitalizeQuery.js +11 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneColumn.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneColumn.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneColumn.js +16 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/cloneQuery.js +9 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/concatenateQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/concatenateQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/concatenateQuery.js +16 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/convertQuery.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/convertQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/convertQuery.js +84 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlations.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlations.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlations.js +46 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlationsQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlationsQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/correlationsQuery.js +32 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createFtsIndex.d.ts +11 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createFtsIndex.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createFtsIndex.js +34 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createVssIndex.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createVssIndex.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/createVssIndex.js +44 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/crossJoinQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/crossJoinQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/crossJoinQuery.js +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/distanceQuery.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/distanceQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/distanceQuery.js +45 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fill.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fill.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fill.js +66 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyClean.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyClean.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyClean.js +200 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoin.d.ts +8 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoin.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoin.js +63 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoinQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoinQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/fuzzyJoinQuery.js +22 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getBottom.d.ts +8 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getBottom.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getBottom.js +28 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getColumns.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getColumns.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getColumns.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getDescription.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getDescription.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getDescription.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getFirstRow.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getFirstRow.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getFirstRow.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getGeoData.d.ts +17 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getGeoData.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getGeoData.js +47 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getLastRow.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getLastRow.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getLastRow.js +25 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMax.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMax.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMax.js +24 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMean.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMean.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMean.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMedian.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMedian.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMedian.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMin.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMin.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getMin.js +24 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbCharacters.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbCharacters.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbCharacters.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbRows.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbRows.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getNbRows.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getQuantile.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getQuantile.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getQuantile.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSkew.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSkew.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSkew.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getStdDev.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getStdDev.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getStdDev.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSum.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSum.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getSum.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTableNames.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTableNames.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTableNames.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTop.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTop.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTop.js +20 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTypes.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTypes.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getTypes.js +19 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getUniques.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getUniques.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getUniques.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getValues.d.ts +3 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getValues.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getValues.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getVar.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getVar.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/getVar.js +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/insertRowsQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/insertRowsQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/insertRowsQuery.js +17 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/join.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/join.js +69 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeo.d.ts +10 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeo.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeo.js +82 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeoQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeoQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinGeoQuery.js +58 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/joinQuery.js +24 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/keepQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/keepQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/keepQuery.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressionQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressionQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressionQuery.js +43 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressions.d.ts +9 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressions.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/linearRegressions.js +49 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadArray.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadArray.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadArray.js +84 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadDataQuery.d.ts +23 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadDataQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/loadDataQuery.js +83 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/lowerQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/lowerQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/lowerQuery.js +10 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeQuery.js +28 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeString.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeString.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/normalizeString.js +32 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/outliersIQRQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/outliersIQRQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/outliersIQRQuery.js +37 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsHorizontalQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsHorizontalQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsHorizontalQuery.js +18 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsVerticalQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsVerticalQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/proportionsVerticalQuery.js +25 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/quantilesQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/quantilesQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/quantilesQuery.js +18 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/ranksQuery.d.ts +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/ranksQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/ranksQuery.js +18 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeDuplicatesQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeDuplicatesQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeDuplicatesQuery.js +18 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissing.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissing.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissing.js +27 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissingQuery.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissingQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeMissingQuery.js +46 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/removeQuery.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/renameColumnQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/renameColumnQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/renameColumnQuery.js +10 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceNullsQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceNullsQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceNullsQuery.js +16 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/replaceQuery.js +27 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/rollingQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/rollingQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/rollingQuery.js +39 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/roundQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/roundQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/roundQuery.js +19 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/selectRowsQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/selectRowsQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/selectRowsQuery.js +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/sortQuery.d.ts +8 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/sortQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/sortQuery.js +21 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/splitSpread.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/splitSpread.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/splitSpread.js +67 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarize.d.ts +13 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarize.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarize.js +66 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarizeQuery.d.ts +7 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarizeQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/summarizeQuery.js +115 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/trimQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/trimQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/trimQuery.js +32 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/truncateQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/truncateQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/truncateQuery.js +6 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/upperQuery.d.ts +2 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/upperQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/upperQuery.js +10 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeDataQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeDataQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeDataQuery.js +50 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeGeoDataQuery.d.ts +4 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeGeoDataQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/writeGeoDataQuery.js +22 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/zScoreQuery.d.ts +5 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/zScoreQuery.d.ts.map +1 -0
- package/script/deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/methods/zScoreQuery.js +29 -0
- package/script/helpers/getRRFRanking.d.ts +8 -0
- package/script/helpers/getRRFRanking.d.ts.map +1 -0
- package/script/helpers/getRRFRanking.js +24 -0
- package/script/helpers/sleep.d.ts +5 -0
- package/script/helpers/sleep.d.ts.map +1 -0
- package/script/helpers/sleep.js +26 -0
- package/script/helpers/tryAI.d.ts +36 -0
- package/script/helpers/tryAI.d.ts.map +1 -0
- package/script/helpers/tryAI.js +78 -0
- package/script/helpers/tryEmbedding.d.ts +15 -0
- package/script/helpers/tryEmbedding.d.ts.map +1 -0
- package/script/helpers/tryEmbedding.js +8 -0
- package/script/index.d.ts +31 -0
- package/script/index.d.ts.map +1 -0
- package/script/index.js +38 -0
- package/script/methods/aiEmbeddings.d.ts +21 -0
- package/script/methods/aiEmbeddings.d.ts.map +1 -0
- package/script/methods/aiEmbeddings.js +56 -0
- package/script/methods/aiQuery.d.ts +21 -0
- package/script/methods/aiQuery.d.ts.map +1 -0
- package/script/methods/aiQuery.js +37 -0
- package/script/methods/aiRAG.d.ts +49 -0
- package/script/methods/aiRAG.d.ts.map +1 -0
- package/script/methods/aiRAG.js +111 -0
- package/script/methods/aiRowByRow.d.ts +35 -0
- package/script/methods/aiRowByRow.d.ts.map +1 -0
- package/script/methods/aiRowByRow.js +48 -0
- package/script/methods/aiRowByRowPool.d.ts +36 -0
- package/script/methods/aiRowByRowPool.d.ts.map +1 -0
- package/script/methods/aiRowByRowPool.js +140 -0
- package/script/methods/aiVectorSimilarity.d.ts +14 -0
- package/script/methods/aiVectorSimilarity.d.ts.map +1 -0
- package/script/methods/aiVectorSimilarity.js +57 -0
- package/script/methods/hybridSearch.d.ts +38 -0
- package/script/methods/hybridSearch.d.ts.map +1 -0
- package/script/methods/hybridSearch.js +241 -0
- package/script/methods/logHistogram.d.ts +8 -0
- package/script/methods/logHistogram.d.ts.map +1 -0
- package/script/methods/logHistogram.js +42 -0
- package/script/package.json +3 -0
|
@@ -0,0 +1,1201 @@
|
|
|
1
|
+
import { SimpleTable as SimpleTableCore } from "../deps/jsr.io/@nshiab/simple-data-analysis-core/0.0.17/src/index.js";
|
|
2
|
+
import type SimpleDB from "./SimpleDB.js";
|
|
3
|
+
import type { Ollama } from "ollama";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a table within a SimpleDB database, capable of handling tabular, geospatial, and vector data.
|
|
6
|
+
* Extends the core [`SimpleTable`](https://github.com/nshiab/simple-data-analysis-core) class
|
|
7
|
+
* from [`simple-data-analysis-core`](https://github.com/nshiab/simple-data-analysis-core) to include
|
|
8
|
+
* additional AI, Google Sheets, and charting methods.
|
|
9
|
+
*
|
|
10
|
+
* @category Main
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Create a SimpleDB instance (in-memory by default)
|
|
14
|
+
* const sdb = new SimpleDB();
|
|
15
|
+
*
|
|
16
|
+
* // Create a new table named "employees" within the database
|
|
17
|
+
* const employees = sdb.newTable("employees");
|
|
18
|
+
*
|
|
19
|
+
* // Load data from a CSV file into the "employees" table
|
|
20
|
+
* await employees.loadData("./employees.csv");
|
|
21
|
+
*
|
|
22
|
+
* // Log the first few rows of the "employees" table to the console
|
|
23
|
+
* await employees.logTable();
|
|
24
|
+
*
|
|
25
|
+
* // Close the database connection and free up resources
|
|
26
|
+
* await sdb.done();
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* // Handling geospatial data
|
|
32
|
+
* // Create a SimpleDB instance
|
|
33
|
+
* const sdb = new SimpleDB();
|
|
34
|
+
*
|
|
35
|
+
* // Create a new table for geospatial data
|
|
36
|
+
* const boundaries = sdb.newTable("boundaries");
|
|
37
|
+
*
|
|
38
|
+
* // Load geospatial data from a GeoJSON file
|
|
39
|
+
* await boundaries.loadGeoData("./boundaries.geojson");
|
|
40
|
+
*
|
|
41
|
+
* // Close the database connection
|
|
42
|
+
* await sdb.done();
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export default class SimpleTable extends SimpleTableCore {
|
|
46
|
+
/**
|
|
47
|
+
* The SimpleDB instance this table belongs to.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
sdb: SimpleDB;
|
|
51
|
+
/**
|
|
52
|
+
* Applies a prompt to the value of each row in a specified column, storing the AI's response in a new column. This method can send requests concurrently and in batches, but is not using a pool, so it may not be the most efficient method for processing very large tables. Check `aiRowByRowPool` for a different approach, especially regarding error handling.
|
|
53
|
+
*
|
|
54
|
+
* This method automatically appends instructions to your prompt; set `verbose` to `true` to see the full prompt.
|
|
55
|
+
*
|
|
56
|
+
* This method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_MODEL`) or directly via `options`, with `options` taking precedence.
|
|
57
|
+
*
|
|
58
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_MODEL` to your desired model name. You can also pass your instance of Ollama to the `ollama` option.
|
|
59
|
+
*
|
|
60
|
+
* To manage rate limits, use `batchSize` to process multiple rows per request and `rateLimitPerMinute` to introduce delays between requests. For higher rate limits (business/professional accounts), `concurrent` allows parallel requests.
|
|
61
|
+
*
|
|
62
|
+
* The `cache` option enables local caching of results in `.journalism-cache` (from the `askAI` function in the [journalism library](https://github.com/nshiab/journalism)). Remember to add `.journalism-cache` to your `.gitignore`.
|
|
63
|
+
*
|
|
64
|
+
* If the AI returns fewer items than expected in a batch, or if a custom `test` function fails, the `retry` option (a number greater than 0) will reattempt the request.
|
|
65
|
+
*
|
|
66
|
+
* Temperature is set to 0 for reproducibility, though consistency cannot be guaranteed.
|
|
67
|
+
*
|
|
68
|
+
* This method does not support tables containing geometries.
|
|
69
|
+
*
|
|
70
|
+
* @param column - The name of the column to be used as input for the AI prompt.
|
|
71
|
+
* @param newColumn - The name of the new column (or an array of column names) where the AI's response will be stored.
|
|
72
|
+
* @param prompt - The input string to guide the AI's response.
|
|
73
|
+
* @param options - Configuration options for the AI request.
|
|
74
|
+
* @param options.batchSize - The number of rows to process in each batch. Defaults to `1`.
|
|
75
|
+
* @param options.concurrent - The number of concurrent requests to send. Defaults to `1`.
|
|
76
|
+
* @param options.cache - If `true`, the results will be cached locally. Defaults to `false`.
|
|
77
|
+
* @param options.test - A function to validate the returned data. If it throws an error, the request will be retried (if `retry` is set). Defaults to `undefined`.
|
|
78
|
+
* @param options.retry - The number of times to retry the request in case of failure. Defaults to `0`.
|
|
79
|
+
* @param options.rateLimitPerMinute - The rate limit for AI requests in requests per minute. The method will wait between requests if necessary. Defaults to `undefined` (no limit).
|
|
80
|
+
* @param options.model - The AI model to use. Defaults to the `AI_MODEL` environment variable.
|
|
81
|
+
* @param options.temperature - The temperature setting for the AI model, controlling the randomness of the output. Defaults to `0`.
|
|
82
|
+
* @param options.apiKey - The API key for the AI service. Defaults to the `AI_KEY` environment variable.
|
|
83
|
+
* @param options.vertex - If `true`, uses Vertex AI. Automatically set to `true` if `AI_PROJECT` and `AI_LOCATION` are set in the environment. Defaults to `false`.
|
|
84
|
+
* @param options.project - The Google Cloud project ID for Vertex AI. Defaults to the `AI_PROJECT` environment variable.
|
|
85
|
+
* @param options.location - The Google Cloud location for Vertex AI. Defaults to the `AI_LOCATION` environment variable.
|
|
86
|
+
* @param options.ollama - If `true`, uses Ollama. Defaults to the `OLLAMA` environment variable. If you want your Ollama instance to be used, you can pass it here too.
|
|
87
|
+
* @param options.verbose - If `true`, logs additional debugging information, including the full prompt sent to the AI. Defaults to `false`.
|
|
88
|
+
* @param options.clean - A function to clean the AI's response after JSON parsing, testing, caching, and storing. Defaults to `undefined`.
|
|
89
|
+
* @param options.contextWindow - An option to specify the context window size for Ollama models. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
90
|
+
* @param options.thinkingBudget - Sets the reasoning token budget: 0 to disable (default, though some models may reason regardless), -1 for a dynamic budget, or > 0 for a fixed budget. For Ollama models, any non-zero value simply enables reasoning, ignoring the specific budget amount.
|
|
91
|
+
* @param options.thinkingLevel - Sets the thinking level for reasoning: "minimal", "low", "medium", or "high", which some models expect instead of `thinkingBudget`. Takes precedence over `thinkingBudget` if both are provided. For Ollama models, any value enables reasoning.
|
|
92
|
+
* @param options.safetyEnabled - Controls whether safety filters are enabled. If set to `true`, filters are active; if `false`, they are disabled. By default, this is `false` when using Vertex AI and `true` otherwise. This setting can be explicitly overridden for any model.
|
|
93
|
+
* @param options.webSearch - (Gemini only) If `true`, enables web search grounding for the AI's responses. Be careful of extra costs. Defaults to `false`.
|
|
94
|
+
* @param options.schemaJson - A Zod JSON schema object for structured output. This overrides the default schema based on the 'newColumn' names.
|
|
95
|
+
* @param options.extraInstructions - Additional instructions to append to the prompt, providing more context or guidance for the AI.
|
|
96
|
+
* @param options.metrics - An object to track cumulative metrics across multiple AI requests. Pass an object with totalCost, totalInputTokens, totalOutputTokens, and totalRequests properties (all initialized to 0). The function will update these values after each request. Note: totalCost is only calculated for Google GenAI models, not for Ollama.
|
|
97
|
+
* @returns A promise that resolves when the AI processing is complete.
|
|
98
|
+
* @category AI
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* // New table with a "name" column.
|
|
103
|
+
* await table.loadArray([
|
|
104
|
+
* { name: "Marie" },
|
|
105
|
+
* { name: "John" },
|
|
106
|
+
* { name: "Alex" },
|
|
107
|
+
* ]);
|
|
108
|
+
*
|
|
109
|
+
* // Ask the AI to categorize names into a new "gender" column.
|
|
110
|
+
* await table.aiRowByRow(
|
|
111
|
+
* "name",
|
|
112
|
+
* "gender",
|
|
113
|
+
* `Guess whether it's a "Man" or a "Woman". If it could be both, return "Neutral".`,
|
|
114
|
+
* {
|
|
115
|
+
* cache: true, // Cache results locally
|
|
116
|
+
* batchSize: 10, // Process 10 rows at once
|
|
117
|
+
* test: (data: { [key: string]: unknown }) => { // Validate AI's response
|
|
118
|
+
* if (
|
|
119
|
+
* typeof data.gender !== "string" ||
|
|
120
|
+
* !["Man", "Woman", "Neutral"].includes(data.gender)
|
|
121
|
+
* ) {
|
|
122
|
+
* throw new Error(`Invalid response: ${data.gender}`);
|
|
123
|
+
* }
|
|
124
|
+
* },
|
|
125
|
+
* retry: 3, // Retry up to 3 times on failure
|
|
126
|
+
* rateLimitPerMinute: 15, // Limit requests to 15 per minute
|
|
127
|
+
* verbose: true, // Log detailed information
|
|
128
|
+
* },
|
|
129
|
+
* );
|
|
130
|
+
*
|
|
131
|
+
* // Example results:
|
|
132
|
+
* // [
|
|
133
|
+
* // { name: "Marie", gender: "Woman" },
|
|
134
|
+
* // { name: "John", gender: "Man" },
|
|
135
|
+
* // { name: "Alex", gender: "Neutral" },
|
|
136
|
+
* // ]
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```ts
|
|
141
|
+
* await table.loadArray([
|
|
142
|
+
* { city: "Marrakech" },
|
|
143
|
+
* { city: "Kyoto" },
|
|
144
|
+
* { city: "Auckland" },
|
|
145
|
+
* ]);
|
|
146
|
+
*
|
|
147
|
+
* await table.aiRowByRow(
|
|
148
|
+
* "city",
|
|
149
|
+
* ["country", "continent"], // Multiple new columns
|
|
150
|
+
* `Give me the country and continent of the city.`,
|
|
151
|
+
* { verbose: true },
|
|
152
|
+
* );
|
|
153
|
+
*
|
|
154
|
+
* // Example results:
|
|
155
|
+
* // [
|
|
156
|
+
* // { city: "Marrakech", country: "Morocco", continent: "Africa" },
|
|
157
|
+
* // { city: "Kyoto", country: "Japan", continent: "Asia" },
|
|
158
|
+
* // { city: "Auckland", country: "New Zealand", continent: "Oceania" },
|
|
159
|
+
* // ]
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
aiRowByRow(column: string, newColumn: string | string[], prompt: string, options?: {
|
|
163
|
+
batchSize?: number;
|
|
164
|
+
concurrent?: number;
|
|
165
|
+
cache?: boolean;
|
|
166
|
+
test?: (result: {
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
}) => void;
|
|
169
|
+
retry?: number;
|
|
170
|
+
model?: string;
|
|
171
|
+
temperature?: number;
|
|
172
|
+
apiKey?: string;
|
|
173
|
+
vertex?: boolean;
|
|
174
|
+
project?: string;
|
|
175
|
+
location?: string;
|
|
176
|
+
ollama?: boolean | Ollama;
|
|
177
|
+
verbose?: boolean;
|
|
178
|
+
rateLimitPerMinute?: number;
|
|
179
|
+
clean?: (response: unknown) => unknown;
|
|
180
|
+
contextWindow?: number;
|
|
181
|
+
thinkingBudget?: number;
|
|
182
|
+
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
183
|
+
safetyEnabled?: boolean;
|
|
184
|
+
webSearch?: boolean;
|
|
185
|
+
extraInstructions?: string;
|
|
186
|
+
schemaJson?: unknown;
|
|
187
|
+
metrics?: {
|
|
188
|
+
totalCost: number;
|
|
189
|
+
totalInputTokens: number;
|
|
190
|
+
totalOutputTokens: number;
|
|
191
|
+
totalRequests: number;
|
|
192
|
+
};
|
|
193
|
+
}): Promise<void>;
|
|
194
|
+
/**
|
|
195
|
+
* Applies a prompt to the value of each row in a specified column using a pool-based approach, storing the AI's response in new columns and any errors in a designated error column. Unlike `aiRowByRow`, this method uses a worker pool for better control over concurrent requests and stores errors instead of throwing them, making it ideal for processing large tables where some rows may fail.
|
|
196
|
+
*
|
|
197
|
+
* This method automatically appends instructions to your prompt; set `verbose` to `true` to see the full prompt.
|
|
198
|
+
*
|
|
199
|
+
* This method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_MODEL`).
|
|
200
|
+
*
|
|
201
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_MODEL` to your desired model name.
|
|
202
|
+
*
|
|
203
|
+
* The pool size controls how many concurrent AI requests can run simultaneously. The `batchSize` option processes multiple rows per request. For example, with `poolSize: 5` and `batchSize: 10`, up to 5 requests can run concurrently, each processing 10 rows.
|
|
204
|
+
*
|
|
205
|
+
* The `cache` option enables local caching of results in `.journalism-cache` (from the `askAI` function in the [journalism library](https://github.com/nshiab/journalism)). Remember to add `.journalism-cache` to your `.gitignore`.
|
|
206
|
+
*
|
|
207
|
+
* If the AI returns fewer items than expected in a batch, or if a custom `test` function fails, the `retry` option (a number greater than 0) will reattempt the request. The `retryCheck` function allows conditional retries based on error inspection.
|
|
208
|
+
*
|
|
209
|
+
* The `minRequestDurationMs` option sets a minimum duration for each request, useful for respecting rate limits when you know the allowed requests per time period.
|
|
210
|
+
*
|
|
211
|
+
* Temperature is set to 0 for reproducibility, though consistency cannot be guaranteed.
|
|
212
|
+
*
|
|
213
|
+
* This method does not support tables containing geometries.
|
|
214
|
+
*
|
|
215
|
+
* @param column - The name of the column to be used as input for the AI prompt.
|
|
216
|
+
* @param newColumn - The name of the new column (or an array of column names) where the AI's response will be stored. If an error occurs for a row, the new column(s) for that row will be set to `NULL`.
|
|
217
|
+
* @param errorColumn - The name of the column where error messages will be stored. Successful requests will have `NULL` in this column.
|
|
218
|
+
* @param prompt - The input string to guide the AI's response.
|
|
219
|
+
* @param poolSize - The number of concurrent AI requests to run simultaneously in the pool.
|
|
220
|
+
* @param options - Configuration options for the AI request.
|
|
221
|
+
* @param options.cache - If `true`, the results will be cached locally. Defaults to `false`.
|
|
222
|
+
* @param options.batchSize - The number of rows to process in each batch. Defaults to `1`.
|
|
223
|
+
* @param options.logProgress - If `true`, logs progress information during processing. Defaults to `false`.
|
|
224
|
+
* @param options.verbose - If `true`, logs additional debugging information, including the full prompt sent to the AI. Defaults to `false`.
|
|
225
|
+
* @param options.includeThoughts - If `true`, includes the AI model's reasoning process in the logged output when using models that support extended thinking. Only relevant when used with thinking-capable models. Defaults to `false`.
|
|
226
|
+
* @param options.test - A function to validate the returned data. If it throws an error, the request will be retried (if `retry` is set). Defaults to `undefined`.
|
|
227
|
+
* @param options.retry - The number of times to retry the request in case of failure. Defaults to `0`.
|
|
228
|
+
* @param options.retryCheck - A function that receives an error and returns a boolean indicating whether to retry. Useful for conditional retries based on error type. Defaults to `undefined`.
|
|
229
|
+
* @param options.extraInstructions - Additional instructions to append to the prompt, providing more context or guidance for the AI.
|
|
230
|
+
* @param options.minRequestDurationMs - The minimum duration in milliseconds for each request. Useful for respecting rate limits. Defaults to `undefined` (no minimum).
|
|
231
|
+
* @param options.clean - A function to clean the AI's response after JSON parsing, testing, caching, and storing. Defaults to `undefined`.
|
|
232
|
+
* @param options.contextWindow - An option to specify the context window size for Ollama models. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
233
|
+
* @param options.thinkingBudget - Sets the reasoning token budget: 0 to disable (default, though some models may reason regardless), -1 for a dynamic budget, or > 0 for a fixed budget. For Ollama models, any non-zero value simply enables reasoning, ignoring the specific budget amount.
|
|
234
|
+
* @param options.thinkingLevel - Sets the thinking level for reasoning: "minimal", "low", "medium", or "high", which some models expect instead of `thinkingBudget`. Takes precedence over `thinkingBudget` if both are provided. For Ollama models, any value enables reasoning.
|
|
235
|
+
* @param options.safetyEnabled - Controls whether safety filters are enabled. If set to `true`, filters are active; if `false`, they are disabled. By default, this is `false` when using Vertex AI and `true` otherwise. This setting can be explicitly overridden for any model.
|
|
236
|
+
* @param options.webSearch - (Gemini only) If `true`, enables web search grounding for the AI's responses. Be careful of extra costs. Defaults to `false`.
|
|
237
|
+
* @param options.schemaJson - A Zod JSON schema object for structured output. This overrides the default schema based on the 'newColumn' names.
|
|
238
|
+
* @param options.model - The AI model to use. Defaults to the `AI_MODEL` environment variable.
|
|
239
|
+
* @param options.temperature - The temperature setting for the AI model, controlling the randomness of the output. Defaults to `0`.
|
|
240
|
+
* @param options.apiKey - The API key for the AI service. Defaults to the `AI_KEY` environment variable.
|
|
241
|
+
* @param options.vertex - If `true`, uses Vertex AI. Automatically set to `true` if `AI_PROJECT` and `AI_LOCATION` are set in the environment. Defaults to `false`.
|
|
242
|
+
* @param options.project - The Google Cloud project ID for Vertex AI. Defaults to the `AI_PROJECT` environment variable.
|
|
243
|
+
* @param options.location - The Google Cloud location for Vertex AI. Defaults to the `AI_LOCATION` environment variable.
|
|
244
|
+
* @param options.ollama - If `true`, uses Ollama. Defaults to the `OLLAMA` environment variable. If you want your Ollama instance to be used, you can pass it here too.
|
|
245
|
+
* @param options.metrics - An object to track cumulative metrics across multiple AI requests. Pass an object with totalCost, totalInputTokens, totalOutputTokens, and totalRequests properties (all initialized to 0). The function will update these values after each request. Note: totalCost is only calculated for Google GenAI models, not for Ollama.
|
|
246
|
+
* @returns A promise that resolves when the AI processing is complete.
|
|
247
|
+
* @category AI
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```ts
|
|
251
|
+
* // New table with a "review" column.
|
|
252
|
+
* await table.loadArray([
|
|
253
|
+
* { review: "Great product!" },
|
|
254
|
+
* { review: "Terrible quality." },
|
|
255
|
+
* { review: "Not bad, could be better." },
|
|
256
|
+
* { review: "Excellent service!" },
|
|
257
|
+
* ]);
|
|
258
|
+
*
|
|
259
|
+
* // Analyze sentiment using a pool with 2 concurrent workers, batch size of 2
|
|
260
|
+
* await table.aiRowByRowPool(
|
|
261
|
+
* "review",
|
|
262
|
+
* "sentiment",
|
|
263
|
+
* "error",
|
|
264
|
+
* `Classify the sentiment as "Positive", "Negative", or "Neutral".`,
|
|
265
|
+
* 2, // poolSize: 2 concurrent requests
|
|
266
|
+
* {
|
|
267
|
+
* cache: true,
|
|
268
|
+
* batchSize: 2, // Process 2 rows per request
|
|
269
|
+
* logProgress: true,
|
|
270
|
+
* test: (data: { [key: string]: unknown }) => {
|
|
271
|
+
* if (
|
|
272
|
+
* typeof data.sentiment !== "string" ||
|
|
273
|
+
* !["Positive", "Negative", "Neutral"].includes(data.sentiment)
|
|
274
|
+
* ) {
|
|
275
|
+
* throw new Error(`Invalid sentiment: ${data.sentiment}`);
|
|
276
|
+
* }
|
|
277
|
+
* },
|
|
278
|
+
* retry: 2,
|
|
279
|
+
* minRequestDurationMs: 1000, // Respect rate limits: at least 1 second per request
|
|
280
|
+
* },
|
|
281
|
+
* );
|
|
282
|
+
*
|
|
283
|
+
* // Example results:
|
|
284
|
+
* // [
|
|
285
|
+
* // { review: "Great product!", sentiment: "Positive", error: null },
|
|
286
|
+
* // { review: "Terrible quality.", sentiment: "Negative", error: null },
|
|
287
|
+
* // { review: "Not bad, could be better.", sentiment: "Neutral", error: null },
|
|
288
|
+
* // { review: "Excellent service!", sentiment: "Positive", error: null },
|
|
289
|
+
* // ]
|
|
290
|
+
* ```
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* ```ts
|
|
294
|
+
* await table.loadArray([
|
|
295
|
+
* { product: "Laptop" },
|
|
296
|
+
* { product: "Smartphone" },
|
|
297
|
+
* { product: "Tablet" },
|
|
298
|
+
* ]);
|
|
299
|
+
*
|
|
300
|
+
* // Extract multiple properties using pool-based processing
|
|
301
|
+
* await table.aiRowByRowPool(
|
|
302
|
+
* "product",
|
|
303
|
+
* ["category", "typical_price_range"],
|
|
304
|
+
* "error",
|
|
305
|
+
* `For the given product, provide the category and typical price range.`,
|
|
306
|
+
* 3, // Process up to 3 products concurrently
|
|
307
|
+
* {
|
|
308
|
+
* logProgress: true,
|
|
309
|
+
* retryCheck: (error) => {
|
|
310
|
+
* // Retry only for specific error types
|
|
311
|
+
* return error instanceof Error && error.message.includes("rate limit");
|
|
312
|
+
* },
|
|
313
|
+
* },
|
|
314
|
+
* );
|
|
315
|
+
*
|
|
316
|
+
* // Example results:
|
|
317
|
+
* // [
|
|
318
|
+
* // { product: "Laptop", category: "Electronics", typical_price_range: "$500-$2000", error: null },
|
|
319
|
+
* // { product: "Smartphone", category: "Electronics", typical_price_range: "$200-$1200", error: null },
|
|
320
|
+
* // { product: "Tablet", category: "Electronics", typical_price_range: "$200-$800", error: null },
|
|
321
|
+
* // ]
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
aiRowByRowPool(column: string, newColumn: string | string[], errorColumn: string, prompt: string, poolSize: number, options?: {
|
|
325
|
+
cache?: boolean;
|
|
326
|
+
batchSize?: number;
|
|
327
|
+
logProgress?: boolean;
|
|
328
|
+
verbose?: boolean;
|
|
329
|
+
includeThoughts?: boolean;
|
|
330
|
+
test?: (result: {
|
|
331
|
+
[key: string]: unknown;
|
|
332
|
+
}) => void;
|
|
333
|
+
retry?: number;
|
|
334
|
+
retryCheck?: (error: unknown) => Promise<boolean> | boolean;
|
|
335
|
+
extraInstructions?: string;
|
|
336
|
+
minRequestDurationMs?: number;
|
|
337
|
+
clean?: (response: unknown) => unknown;
|
|
338
|
+
contextWindow?: number;
|
|
339
|
+
thinkingBudget?: number;
|
|
340
|
+
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
341
|
+
safetyEnabled?: boolean;
|
|
342
|
+
webSearch?: boolean;
|
|
343
|
+
schemaJson?: unknown;
|
|
344
|
+
model?: string;
|
|
345
|
+
temperature?: number;
|
|
346
|
+
apiKey?: string;
|
|
347
|
+
vertex?: boolean;
|
|
348
|
+
project?: string;
|
|
349
|
+
location?: string;
|
|
350
|
+
ollama?: boolean | Ollama;
|
|
351
|
+
metrics?: {
|
|
352
|
+
totalCost: number;
|
|
353
|
+
totalInputTokens: number;
|
|
354
|
+
totalOutputTokens: number;
|
|
355
|
+
totalRequests: number;
|
|
356
|
+
};
|
|
357
|
+
}): Promise<void>;
|
|
358
|
+
/**
|
|
359
|
+
* Generates embeddings for a specified text column and stores the results in a new column.
|
|
360
|
+
*
|
|
361
|
+
* This method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_EMBEDDINGS_MODEL`) or directly via `options`, with `options` taking precedence.
|
|
362
|
+
*
|
|
363
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_EMBEDDINGS_MODEL` to your desired model name. You can also pass your instance of Ollama to the `ollama` option.
|
|
364
|
+
*
|
|
365
|
+
* To manage rate limits, use `rateLimitPerMinute` to introduce delays between requests. For higher rate limits (business/professional accounts), `concurrent` allows parallel requests.
|
|
366
|
+
*
|
|
367
|
+
* The `cache` option enables local caching of results in `.journalism-cache` (from the `getEmbedding` function in the [journalism library](https://github.com/nshiab/journalism)). Remember to add `.journalism-cache` to your `.gitignore`.
|
|
368
|
+
*
|
|
369
|
+
* If `createIndex` is `true`, an index will be created on the new column using the [duckdb-vss extension](https://github.com/duckdb/duckdb-vss). This is useful for speeding up the `aiVectorSimilarity` method. If the index already exists, it will not be recreated unless `overwriteIndex` is `true`.
|
|
370
|
+
*
|
|
371
|
+
* This method does not support tables containing geometries.
|
|
372
|
+
*
|
|
373
|
+
* @param column - The name of the column to be used as input for generating embeddings.
|
|
374
|
+
* @param newColumn - The name of the new column where the generated embeddings will be stored.
|
|
375
|
+
* @param options - Configuration options for the AI request.
|
|
376
|
+
* @param options.createIndex - If `true`, an index will be created on the new column. Useful for speeding up the `aiVectorSimilarity` method. Defaults to `false`.
|
|
377
|
+
* @param options.overwriteIndex - If `true` and `createIndex` is `true`, drops and recreates the VSS index even if it already exists. Defaults to `false`.
|
|
378
|
+
* @param options.efConstruction - The number of candidate vertices to consider during index construction. Higher values result in more accurate indexes but increase build time. Defaults to 128.
|
|
379
|
+
* @param options.efSearch - The number of candidate vertices to consider during search. Higher values result in more accurate searches but increase search time. Defaults to 64.
|
|
380
|
+
* @param options.M - The maximum number of neighbors to keep for each vertex in the graph. Higher values result in more accurate indexes but increase build time and memory usage. Defaults to 16.
|
|
381
|
+
* @param options.concurrent - The number of concurrent requests to send. Defaults to `1`.
|
|
382
|
+
* @param options.cache - If `true`, the results will be cached locally. Defaults to `false`.
|
|
383
|
+
* @param options.rateLimitPerMinute - The rate limit for AI requests in requests per minute. The method will wait between requests if necessary. Defaults to `undefined` (no limit).
|
|
384
|
+
* @param options.model - The AI model to use. Defaults to the `AI_EMBEDDINGS_MODEL` environment variable.
|
|
385
|
+
* @param options.apiKey - The API key for the AI service. Defaults to the `AI_KEY` environment variable.
|
|
386
|
+
* @param options.vertex - If `true`, uses Vertex AI. Automatically set to `true` if `AI_PROJECT` and `AI_LOCATION` are set in the environment. Defaults to `false`.
|
|
387
|
+
* @param options.project - The Google Cloud project ID for Vertex AI. Defaults to the `AI_PROJECT` environment variable.
|
|
388
|
+
* @param options.location - The Google Cloud location for Vertex AI. Defaults to the `AI_LOCATION` environment variable.
|
|
389
|
+
* @param options.ollama - If `true`, uses Ollama. Defaults to the `OLLAMA` environment variable. If you want your Ollama instance to be used, you can pass it here too.
|
|
390
|
+
* @param options.contextWindow - An option to specify the context window size for Ollama models. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
391
|
+
* @param options.verbose - If `true`, logs additional debugging information. Defaults to `false`.
|
|
392
|
+
* @returns A promise that resolves when the embeddings have been generated and stored.
|
|
393
|
+
* @category AI
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* ```ts
|
|
397
|
+
* // New table with a "food" column.
|
|
398
|
+
* await table.loadArray([
|
|
399
|
+
* { food: "pizza" },
|
|
400
|
+
* { food: "sushi" },
|
|
401
|
+
* { food: "burger" },
|
|
402
|
+
* { food: "pasta" },
|
|
403
|
+
* { food: "salad" },
|
|
404
|
+
* { food: "tacos" }
|
|
405
|
+
* ]);
|
|
406
|
+
*
|
|
407
|
+
* // Generate embeddings for the "food" column and store them in a new "embeddings" column.
|
|
408
|
+
* await table.aiEmbeddings("food", "embeddings", {
|
|
409
|
+
* cache: true, // Cache results locally
|
|
410
|
+
* rateLimitPerMinute: 15, // Limit requests to 15 per minute
|
|
411
|
+
* createIndex: true, // Create an index on the new column for faster similarity searches
|
|
412
|
+
* verbose: true, // Log detailed information
|
|
413
|
+
* });
|
|
414
|
+
* ```
|
|
415
|
+
*/
|
|
416
|
+
aiEmbeddings(column: string, newColumn: string, options?: {
|
|
417
|
+
createIndex?: boolean;
|
|
418
|
+
overwriteIndex?: boolean;
|
|
419
|
+
concurrent?: number;
|
|
420
|
+
cache?: boolean;
|
|
421
|
+
model?: string;
|
|
422
|
+
apiKey?: string;
|
|
423
|
+
vertex?: boolean;
|
|
424
|
+
project?: string;
|
|
425
|
+
location?: string;
|
|
426
|
+
ollama?: boolean | Ollama;
|
|
427
|
+
verbose?: boolean;
|
|
428
|
+
rateLimitPerMinute?: number;
|
|
429
|
+
contextWindow?: number;
|
|
430
|
+
efConstruction?: number;
|
|
431
|
+
efSearch?: number;
|
|
432
|
+
M?: number;
|
|
433
|
+
}): Promise<void>;
|
|
434
|
+
/**
|
|
435
|
+
* Creates an embedding from a specified text and returns the most similar text content based on their embeddings.
|
|
436
|
+
* This method is useful for semantic search and text similarity tasks, computing cosine distance and sorting results by similarity.
|
|
437
|
+
*
|
|
438
|
+
* To create the embedding, this method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_EMBEDDINGS_MODEL`) or directly via `options`, with `options` taking precedence.
|
|
439
|
+
*
|
|
440
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_EMBEDDINGS_MODEL` to your desired model name. You can also pass your instance of Ollama to the `ollama` option.
|
|
441
|
+
*
|
|
442
|
+
* The `cache` option enables local caching of the specified text's embedding in `.journalism-cache` (from the `getEmbedding` function in the [journalism library](https://github.com/nshiab/journalism)). Remember to add `.journalism-cache` to your `.gitignore`.
|
|
443
|
+
*
|
|
444
|
+
* If `createIndex` is `true`, an index will be created on the embeddings column using the [duckdb-vss extension](https://github.com/duckdb/duckdb-vss) to speed up processing. If the index already exists, it will not be recreated unless `overwriteIndex` is `true`.
|
|
445
|
+
*
|
|
446
|
+
* @param text - The text for which to generate an embedding and find similar content.
|
|
447
|
+
* @param column - The name of the column containing the embeddings to be used for the similarity search.
|
|
448
|
+
* @param nbResults - The maximum number of most similar results to return.
|
|
449
|
+
* @param options - An optional object with configuration options:
|
|
450
|
+
* @param options.minSimilarity - A threshold between 0.0 and 1.0 to filter out results that are not similar enough. For example, 0.7 ensures only results with a 70% similarity or higher are returned. Defaults to `undefined` (no threshold).
|
|
451
|
+
* @param options.similarityColumn - If provided, a new column with this name will be added to the output table containing the calculated similarity score (from 0.0 to 1.0) for each row. Defaults to `undefined`.
|
|
452
|
+
* @param options.createIndex - If `true`, an index will be created on the embeddings column. Defaults to `false`.
|
|
453
|
+
* @param options.overwriteIndex - If `true` and `createIndex` is `true`, drops and recreates the VSS index even if it already exists. Defaults to `false`.
|
|
454
|
+
* @param options.efConstruction - The number of candidate vertices to consider during index construction. Higher values result in more accurate indexes but increase build time. Defaults to 128.
|
|
455
|
+
* @param options.efSearch - The number of candidate vertices to consider during search. Higher values result in more accurate searches but increase search time. Defaults to 64.
|
|
456
|
+
* @param options.M - The maximum number of neighbors to keep for each vertex in the graph. Higher values result in more accurate indexes but increase build time and memory usage. Defaults to 16.
|
|
457
|
+
* @param options.outputTable - The name of the output table where the results will be stored. If not provided, the current table will be modified. Defaults to `undefined`.
|
|
458
|
+
* @param options.cache - If `true`, the embedding of the input `text` will be cached locally. Defaults to `false`.
|
|
459
|
+
* @param options.model - The AI model to use for generating the embedding. Defaults to the `AI_EMBEDDINGS_MODEL` environment variable.
|
|
460
|
+
* @param options.apiKey - The API key for the AI service. Defaults to the `AI_KEY` environment variable.
|
|
461
|
+
* @param options.vertex - If `true`, uses Vertex AI. Automatically set to `true` if `AI_PROJECT` and `AI_LOCATION` are set in the environment. Defaults to `false`.
|
|
462
|
+
* @param options.project - The Google Cloud project ID for Vertex AI. Defaults to the `AI_PROJECT` environment variable.
|
|
463
|
+
* @param options.location - The Google Cloud location for Vertex AI. Defaults to the `AI_LOCATION` environment variable.
|
|
464
|
+
* @param options.ollama - If `true`, uses Ollama. Defaults to the `OLLAMA` environment variable. If you want your Ollama instance to be used, you can pass it here too.
|
|
465
|
+
* @param options.verbose - If `true`, logs additional debugging information. Defaults to `false`.
|
|
466
|
+
* @param options.contextWindow - An option to specify the context window size for Ollama models. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
467
|
+
* @returns A promise that resolves to the SimpleTable instance containing the similarity search results.
|
|
468
|
+
* @category AI
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```ts
|
|
472
|
+
* // New table with a "food" column.
|
|
473
|
+
* await table.loadArray([
|
|
474
|
+
* { food: "pizza" },
|
|
475
|
+
* { food: "sushi" },
|
|
476
|
+
* { food: "burger" },
|
|
477
|
+
* { food: "pasta" },
|
|
478
|
+
* { food: "salad" },
|
|
479
|
+
* { food: "tacos" }
|
|
480
|
+
* ]);
|
|
481
|
+
*
|
|
482
|
+
* // Generate embeddings for the "food" column.
|
|
483
|
+
* await table.aiEmbeddings("food", "embeddings", { cache: true });
|
|
484
|
+
*
|
|
485
|
+
* // Find the 3 most similar foods to "italian food" based on embeddings.
|
|
486
|
+
* // We only want results with at least 60% similarity and we want to see the score.
|
|
487
|
+
* const similarFoods = await table.aiVectorSimilarity(
|
|
488
|
+
* "italian food",
|
|
489
|
+
* "embeddings",
|
|
490
|
+
* 3,
|
|
491
|
+
* {
|
|
492
|
+
* createIndex: true, // Create an index on the embeddings column for faster searches
|
|
493
|
+
* cache: true, // Cache the embedding of "italian food"
|
|
494
|
+
* minSimilarity: 0.6, // Filter out anything below 0.6 similarity
|
|
495
|
+
* similarityColumn: "score" // Add a new column named "score" with the similarity math
|
|
496
|
+
* }
|
|
497
|
+
* );
|
|
498
|
+
*
|
|
499
|
+
* // Log the results
|
|
500
|
+
* await similarFoods.logTable();
|
|
501
|
+
* ```
|
|
502
|
+
*/
|
|
503
|
+
aiVectorSimilarity(text: string, column: string, nbResults: number, options?: {
|
|
504
|
+
createIndex?: boolean;
|
|
505
|
+
overwriteIndex?: boolean;
|
|
506
|
+
outputTable?: string;
|
|
507
|
+
cache?: boolean;
|
|
508
|
+
model?: string;
|
|
509
|
+
apiKey?: string;
|
|
510
|
+
vertex?: boolean;
|
|
511
|
+
project?: string;
|
|
512
|
+
location?: string;
|
|
513
|
+
ollama?: boolean | Ollama;
|
|
514
|
+
contextWindow?: number;
|
|
515
|
+
verbose?: boolean;
|
|
516
|
+
efConstruction?: number;
|
|
517
|
+
efSearch?: number;
|
|
518
|
+
M?: number;
|
|
519
|
+
minSimilarity?: number;
|
|
520
|
+
similarityColumn?: string;
|
|
521
|
+
}): Promise<SimpleTable>;
|
|
522
|
+
/**
|
|
523
|
+
* Performs hybrid text search combining vector similarity and BM25 text search using Reciprocal Rank Fusion (RRF).
|
|
524
|
+
*
|
|
525
|
+
* This method:
|
|
526
|
+
* 1. Generates embeddings for the text column if they don't already exist
|
|
527
|
+
* 2. Runs vector similarity search and BM25 text search in parallel
|
|
528
|
+
* 3. Fuses the results using Reciprocal Rank Fusion to get the best matches
|
|
529
|
+
* 4. Returns a new table with the top results ordered by relevance
|
|
530
|
+
*
|
|
531
|
+
* The embeddings are cached at two levels:
|
|
532
|
+
* * At the table level, so renaming the table will invalidate the cache and regenerate embeddings. For often updated tables, you can pass a timestamp to the table name (e.g., `mytable_20240901`) to keep the cache valid until the next update.
|
|
533
|
+
* * At the row level, so if the text content is different or not cached, the embedding will be generated and cached for that specific text. If the text content has been previously cached, the existing embedding will be reused, even if the table has been renamed (as long as the text content is unchanged).
|
|
534
|
+
*
|
|
535
|
+
* Also, the method creates the column `{columnText}_embeddings` to store the generated embeddings. If you wrote your DB to a file, and if the column already exists, it will reuse the existing embeddings column directly, before even checking the cache, since the DB file itself serves as a cache. Similarly, the embeddings and BM25 index are reused if they already exist.
|
|
536
|
+
*
|
|
537
|
+
* To delete the cache, simply remove the `.journalism-cache` and/or `.sda-cache` directories in your project or set the cache option to `false`. Remember to add `.journalism-cache` and `.sda-cache` to your `.gitignore`.
|
|
538
|
+
*
|
|
539
|
+
* This method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_EMBEDDINGS_MODEL`) or directly via `options`, with `options` taking precedence.
|
|
540
|
+
*
|
|
541
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_EMBEDDINGS_MODEL` to your desired model name. You can also pass your instance of Ollama.
|
|
542
|
+
*
|
|
543
|
+
* If `createIndex` is `true`, both a vector index (using the [duckdb-vss extension](https://github.com/duckdb/duckdb-vss)) and a BM25 full-text search index (using the [fts extension](https://duckdb.org/docs/stable/core_extensions/full_text_search)) will be created for faster retrieval.
|
|
544
|
+
*
|
|
545
|
+
* This method does not support tables containing geometries.
|
|
546
|
+
*
|
|
547
|
+
* @param query - The search query text.
|
|
548
|
+
* @param columnId - The name of the column containing unique identifiers for each row.
|
|
549
|
+
* @param columnText - The name of the column containing the text content to search through.
|
|
550
|
+
* @param nbResults - The number of most similar rows to retrieve.
|
|
551
|
+
* @param options - Configuration options for the hybrid search.
|
|
552
|
+
* @param options.cache - If `true`, embeddings will be cached locally. Defaults to `false`.
|
|
553
|
+
* @param options.verbose - If `true`, logs additional debugging information. Defaults to `false`.
|
|
554
|
+
* @param options.embeddingsModelContextWindow - An option to specify the context window size for the embeddings model when using Ollama. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
555
|
+
* @param options.createIndex - If `true`, both vector and BM25 indexes will be created for faster retrieval. Defaults to `false`.
|
|
556
|
+
* @param options.efConstruction - The number of candidate vertices to consider during index construction. Higher values result in more accurate indexes but increase build time. Defaults to 128.
|
|
557
|
+
* @param options.efSearch - The number of candidate vertices to consider during search. Higher values result in more accurate searches but increase search time. Defaults to 64.
|
|
558
|
+
* @param options.M - The maximum number of neighbors to keep for each vertex in the graph. Higher values result in more accurate indexes but increase build time and memory usage. Defaults to 16.
|
|
559
|
+
* @param options.embeddingsModel - The model to use for generating embeddings. Defaults to the `AI_EMBEDDINGS_MODEL` environment variable.
|
|
560
|
+
* @param options.ollamaEmbeddings - If `true`, forces the use of Ollama for embeddings generation. Defaults to `false`.
|
|
561
|
+
* @param options.embeddingsConcurrent - The number of concurrent requests to send to the embeddings service. Defaults to `1`.
|
|
562
|
+
* @param options.stemmer - The language stemmer to apply for BM25 word normalization. Supports multiple languages or "none" to disable stemming. Defaults to `'porter'`.
|
|
563
|
+
* @param options.stopwords - The table containing the stopwords to use for the BM25 FTS index. Supports multiple languages or "none" to disable stopwords. Defaults to "english".
|
|
564
|
+
* @param options.ignore - The regular expression of patterns to be ignored for the BM25 FTS index. Defaults to "(\\.|[^a-z])+".
|
|
565
|
+
* @param options.stripAccents - A boolean indicating whether to remove accents for the BM25 FTS index. Defaults to true.
|
|
566
|
+
* @param options.lower - A boolean indicating whether to convert all text to lowercase for the BM25 FTS index. Defaults to true.
|
|
567
|
+
* @param options.k - The BM25 k parameter controlling term frequency saturation. Defaults to `1.2`.
|
|
568
|
+
* @param options.b - The BM25 b parameter controlling document length normalization (0-1 range). Defaults to `0.75`.
|
|
569
|
+
* @param options.conjunctive - If `true`, all terms in the query string must be present in order for a document to be retrieved during the BM25 search. Defaults to `false`.
|
|
570
|
+
* @param options.bm25 - If `true`, includes BM25 text search in the hybrid search. Defaults to `true`.
|
|
571
|
+
* @param options.bm25MinScore - A threshold to filter BM25 results. Only rows with a BM25 score above this value will be included in the final results. Defaults to `undefined` (no threshold).
|
|
572
|
+
* @param options.bm25ScoreColumn - If provided, a new column with this name will be added to the output table containing the BM25 score for each row.
|
|
573
|
+
* @param options.vectorSearch - If `true`, includes vector similarity search in the hybrid search. Defaults to `true`.
|
|
574
|
+
* @param options.vectorMinSimilarity - A threshold between 0.0 and 1.0 to filter out vector search results that are not similar enough. For example, 0.7 ensures only results with a 70% similarity or higher are included in the final results. Defaults to `undefined` (no threshold).
|
|
575
|
+
* @param options.vectorSimilarityColumn - If provided, a new column with this name will be added to the output table containing the vector similarity score (from 0.0 to 1.0) for each row.
|
|
576
|
+
* @param options.outputTable - The name of a new table where the results will be stored. If not provided, the current table will be replaced with the search results.
|
|
577
|
+
* @param options.times - An optional object to track timing information. If provided, it will be updated with detailed timing breakdowns (embeddingStart, embeddingEnd, vectorSearchStart, vectorSearchEnd, bm25Start, bm25End). Useful when calling from aiRAG to get combined timing information.
|
|
578
|
+
* @returns A promise that resolves to a SimpleTable instance containing the search results, ordered by relevance (best matches first).
|
|
579
|
+
* @category AI
|
|
580
|
+
*
|
|
581
|
+
* @example
|
|
582
|
+
* ```ts
|
|
583
|
+
* // Load a dataset of recipes
|
|
584
|
+
* const sdb = new SimpleDB();
|
|
585
|
+
* const table = sdb.newTable("recipes");
|
|
586
|
+
* await table.loadData("recipes.parquet");
|
|
587
|
+
*
|
|
588
|
+
* // Perform hybrid search - replaces the current table with top 10 results
|
|
589
|
+
* await table.hybridSearch(
|
|
590
|
+
* "buttery pastry for breakfast",
|
|
591
|
+
* "Dish", // Column with unique IDs
|
|
592
|
+
* "Recipe", // Column with text to search
|
|
593
|
+
* 10, // Return top 10 results
|
|
594
|
+
* {
|
|
595
|
+
* cache: true, // Cache embeddings
|
|
596
|
+
* verbose: true, // Log debugging information
|
|
597
|
+
* }
|
|
598
|
+
* );
|
|
599
|
+
*
|
|
600
|
+
* // Table now contains only the most relevant recipes
|
|
601
|
+
* await table.logTable();
|
|
602
|
+
* ```
|
|
603
|
+
*/
|
|
604
|
+
hybridSearch(query: string, columnId: string, columnText: string, nbResults: number, options?: {
|
|
605
|
+
cache?: boolean;
|
|
606
|
+
verbose?: boolean;
|
|
607
|
+
embeddingsModelContextWindow?: number;
|
|
608
|
+
createIndex?: boolean;
|
|
609
|
+
embeddingsModel?: string;
|
|
610
|
+
ollamaEmbeddings?: boolean;
|
|
611
|
+
embeddingsConcurrent?: number;
|
|
612
|
+
stemmer?: "arabic" | "basque" | "catalan" | "danish" | "dutch" | "english" | "finnish" | "french" | "german" | "greek" | "hindi" | "hungarian" | "indonesian" | "irish" | "italian" | "lithuanian" | "nepali" | "norwegian" | "porter" | "portuguese" | "romanian" | "russian" | "serbian" | "spanish" | "swedish" | "tamil" | "turkish" | "none";
|
|
613
|
+
stopwords?: string;
|
|
614
|
+
ignore?: string;
|
|
615
|
+
stripAccents?: boolean;
|
|
616
|
+
lower?: boolean;
|
|
617
|
+
k?: number;
|
|
618
|
+
b?: number;
|
|
619
|
+
conjunctive?: boolean;
|
|
620
|
+
bm25?: boolean;
|
|
621
|
+
bm25MinScore?: number;
|
|
622
|
+
bm25ScoreColumn?: string;
|
|
623
|
+
vectorSearch?: boolean;
|
|
624
|
+
vectorMinSimilarity?: number;
|
|
625
|
+
vectorSimilarityColumn?: string;
|
|
626
|
+
outputTable?: string;
|
|
627
|
+
efConstruction?: number;
|
|
628
|
+
efSearch?: number;
|
|
629
|
+
M?: number;
|
|
630
|
+
times?: {
|
|
631
|
+
start?: number;
|
|
632
|
+
embeddingStart?: number;
|
|
633
|
+
embeddingEnd?: number;
|
|
634
|
+
vectorSearchStart?: number;
|
|
635
|
+
vectorSearchEnd?: number;
|
|
636
|
+
bm25Start?: number;
|
|
637
|
+
bm25End?: number;
|
|
638
|
+
};
|
|
639
|
+
}): Promise<SimpleTable>;
|
|
640
|
+
/**
|
|
641
|
+
* Performs Retrieval-Augmented Generation (RAG) by combining semantic vector search and BM25 full-text search to retrieve the most relevant context, then passing it to an LLM for answering queries. This hybrid approach uses both `aiVectorSimilarity` (embeddings-based) and `bm25` (keyword-based) methods in parallel, fusing their results using Reciprocal Rank Fusion (RRF) before calling the `askAI` function from the journalism library.
|
|
642
|
+
*
|
|
643
|
+
* Internally, this method uses the `hybridSearch` method to retrieve relevant rows. If you want to perform hybrid search without the LLM step (i.e., to get the table of results directly), use `hybridSearch` instead.
|
|
644
|
+
*
|
|
645
|
+
* The embeddings are cached at two levels:
|
|
646
|
+
* * At the table level, so renaming the table will invalidate the cache and regenerate embeddings. For often updated tables, you can pass a timestamp to the table name (e.g., `mytable_20240901`) to keep the cache valid until the next update.
|
|
647
|
+
* * At the row level, so if the text content is different or not cached, the embedding will be generated and cached for that specific text. If the text content has been previously cached, the existing embedding will be reused, even if the table has been renamed (as long as the text content is unchanged).
|
|
648
|
+
*
|
|
649
|
+
* Also, the method creates the column `{columnText}_embeddings` to store the generated embeddings. If you wrote your DB to a file, and if the column already exists, it will reuse the existing embeddings column directly, before even checking the cache, since the DB file itself serves as a cache. Similarly, the embeddings and BM25 index are reused if they already exist.
|
|
650
|
+
*
|
|
651
|
+
* To delete the cache, simply remove the `.journalism-cache` and/or `.sda-cache` directories in your project or set the cache option to `false`. Remember to add `.journalism-cache` and `.sda-cache` to your `.gitignore`.
|
|
652
|
+
*
|
|
653
|
+
* This method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_MODEL`, `AI_EMBEDDINGS_MODEL`) or directly via `options`, with `options` taking precedence.
|
|
654
|
+
*
|
|
655
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_MODEL` and `AI_EMBEDDINGS_MODEL` to your desired model names. If you are using Google Gemini or Vertex AI for the LLM, you can still use Ollama embeddings via the `ollamaEmbeddings` option.
|
|
656
|
+
*
|
|
657
|
+
* The LLM temperature is set to 0 for reproducibility, though consistency cannot be guaranteed.
|
|
658
|
+
*
|
|
659
|
+
* If `createIndex` is `true`, both a vector index (using the [duckdb-vss extension](https://github.com/duckdb/duckdb-vss)) and a BM25 full-text search index (using the [fts extension](https://duckdb.org/docs/stable/core_extensions/full_text_search)) will be created for faster retrieval.
|
|
660
|
+
*
|
|
661
|
+
* This method does not support tables containing geometries.
|
|
662
|
+
*
|
|
663
|
+
* @param query - The question or query to answer using the retrieved context.
|
|
664
|
+
* @param columnId - The name of the column containing unique identifiers for each row.
|
|
665
|
+
* @param columnText - The name of the column containing the text content to search through and use as context.
|
|
666
|
+
* @param nbResults - The number of most similar rows to retrieve and use as context for the AI.
|
|
667
|
+
* @param options - Configuration options for the RAG process.
|
|
668
|
+
* @param options.cache - If `true`, embeddings and LLM responses will be cached locally. Defaults to `false`.
|
|
669
|
+
* @param options.verbose - If `true`, logs additional debugging information. Defaults to `false`.
|
|
670
|
+
* @param options.includeThoughts - If `true`, includes the AI model's reasoning process in the logged output when using models that support extended thinking. Only relevant when used with thinking-capable models. Defaults to `false`.
|
|
671
|
+
* @param options.systemPrompt - An option to overwrite the LLM system prompt.
|
|
672
|
+
* @param options.modelContextWindow - An option to specify the context window size for the LLM model when using Ollama. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
673
|
+
* @param options.embeddingsModelContextWindow - An option to specify the context window size for the embeddings model when using Ollama. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
674
|
+
* @param options.thinkingBudget - Sets the reasoning token budget: 0 to disable (default, though some models may reason regardless), -1 for a dynamic budget, or > 0 for a fixed budget. For Ollama models, any non-zero value simply enables reasoning, ignoring the specific budget amount.
|
|
675
|
+
* @param options.thinkingLevel - Sets the thinking level for reasoning: "minimal", "low", "medium", or "high", which some models expect instead of `thinkingBudget`. Takes precedence over `thinkingBudget` if both are provided. For Ollama models, any value enables reasoning.
|
|
676
|
+
* @param options.safetyEnabled - Controls whether safety filters are enabled. If set to `true`, filters are active; if `false`, they are disabled. By default, this is `false` when using Vertex AI and `true` otherwise. This setting can be explicitly overridden for any model.
|
|
677
|
+
* @param options.webSearch - (Gemini only) If `true`, enables web search grounding for the AI's responses. Be careful of extra costs. Defaults to `false`.
|
|
678
|
+
* @param options.model - The LLM model to use for answering the query. Defaults to the `AI_MODEL` environment variable.
|
|
679
|
+
* @param options.temperature - The temperature setting for the AI model, controlling the randomness of the output. Defaults to `0`.
|
|
680
|
+
* @param options.apiKey - Your API key for the AI service. Defaults to the `AI_KEY` environment variable.
|
|
681
|
+
* @param options.vertex - Set to `true` to use Vertex AI for authentication. Auto-enables if `AI_PROJECT` and `AI_LOCATION` are set. Defaults to `false`.
|
|
682
|
+
* @param options.project - Your Google Cloud project ID. Defaults to the `AI_PROJECT` environment variable.
|
|
683
|
+
* @param options.location - Your Google Cloud location for your project. Defaults to the `AI_LOCATION` environment variable.
|
|
684
|
+
* @param options.ollama - If `true`, uses Ollama. Defaults to the `OLLAMA` environment variable. If you want your Ollama instance to be used, you can pass it here too.
|
|
685
|
+
* @param options.metrics - An object to track cumulative metrics across multiple AI requests. Pass an object with totalCost, totalInputTokens, totalOutputTokens, and totalRequests properties (all initialized to 0). The function will update these values after each request. Note: totalCost is only calculated for Google GenAI models, not for Ollama.
|
|
686
|
+
* @param options.embeddingsModel - The model to use for generating embeddings. Defaults to the `AI_EMBEDDINGS_MODEL` environment variable.
|
|
687
|
+
* @param options.ollamaEmbeddings - If `true`, forces the use of Ollama for embeddings generation, even if Gemini or Vertex is used for the LLM. Defaults to `false`.
|
|
688
|
+
* @param options.embeddingsConcurrent - The number of concurrent requests to send to the embeddings service. Defaults to `1`.
|
|
689
|
+
* @param options.createIndex - If `true`, both vector and BM25 indexes will be created for faster retrieval. Defaults to `false`.
|
|
690
|
+
* @param options.efConstruction - The number of candidate vertices to consider during index construction. Higher values result in more accurate indexes but increase build time. Defaults to 128.
|
|
691
|
+
* @param options.efSearch - The number of candidate vertices to consider during search. Higher values result in more accurate searches but increase search time. Defaults to 64.
|
|
692
|
+
* @param options.M - The maximum number of neighbors to keep for each vertex in the graph. Higher values result in more accurate indexes but increase build time and memory usage. Defaults to 16.
|
|
693
|
+
* @param options.stemmer - The language stemmer to apply for BM25 word normalization. Supports multiple languages or "none" to disable stemming. Defaults to `'porter'`.
|
|
694
|
+
* @param options.stopwords - The table containing the stopwords to use for the BM25 FTS index. Supports multiple languages or "none" to disable stopwords. Defaults to "english".
|
|
695
|
+
* @param options.ignore - The regular expression of patterns to be ignored for the BM25 FTS index. Defaults to "(\\.|[^a-z])+".
|
|
696
|
+
* @param options.stripAccents - A boolean indicating whether to remove accents for the BM25 FTS index. Defaults to true.
|
|
697
|
+
* @param options.lower - A boolean indicating whether to convert all text to lowercase for the BM25 FTS index. Defaults to true.
|
|
698
|
+
* @param options.k - The BM25 k parameter controlling term frequency saturation. Defaults to `1.2`.
|
|
699
|
+
* @param options.b - The BM25 b parameter controlling document length normalization (0-1 range). Defaults to `0.75`.
|
|
700
|
+
* @param options.conjunctive - If `true`, all terms in the query string must be present in order for a document to be retrieved during the BM25 search. Defaults to `false`.
|
|
701
|
+
* @param options.bm25 - If `true`, includes BM25 text search in the hybrid search. Defaults to `true`.
|
|
702
|
+
* @param options.bm25MinScore - A threshold to filter BM25 results. Only rows with a BM25 score above this value will be included in the final results. Defaults to `undefined` (no threshold).
|
|
703
|
+
* @param options.bm25ScoreColumn - If provided, a new column with this name will be added to the output table containing the BM25 score for each row.
|
|
704
|
+
* @param options.vectorSearch - If `true`, includes vector similarity search in the hybrid search. Defaults to `true`.
|
|
705
|
+
* @param options.vectorMinSimilarity - A threshold between 0.0 and 1.0 to filter out vector search results that are not similar enough. For example, 0.7 ensures only results with a 70% similarity or higher are included in the final results. Defaults to `undefined` (no threshold).
|
|
706
|
+
* @param options.vectorSimilarityColumn - If provided, a new column with this name will be added to the output table containing the vector similarity score (from 0.0 to 1.0) for each row.
|
|
707
|
+
* @returns A promise that resolves to the AI's answer to the query based on the retrieved context.
|
|
708
|
+
* @category AI
|
|
709
|
+
*
|
|
710
|
+
* @example
|
|
711
|
+
* ```ts
|
|
712
|
+
* // Load a dataset of recipes
|
|
713
|
+
* const sdb = new SimpleDB();
|
|
714
|
+
* const table = sdb.newTable("recipes");
|
|
715
|
+
* await table.loadData("recipes.parquet");
|
|
716
|
+
*
|
|
717
|
+
* // Ask a question using hybrid RAG (vector + BM25 search)
|
|
718
|
+
* const answer = await table.aiRAG(
|
|
719
|
+
* "I want a buttery pastry for breakfast.",
|
|
720
|
+
* "Dish", // Column with unique IDs
|
|
721
|
+
* "Recipe", // Column with text to search
|
|
722
|
+
* 10, // The 10 most relevant recipes passed to the LLM
|
|
723
|
+
* {
|
|
724
|
+
* cache: true, // Cache embeddings
|
|
725
|
+
* verbose: true, // Log debugging information and timings
|
|
726
|
+
* }
|
|
727
|
+
* );
|
|
728
|
+
*
|
|
729
|
+
* console.log(answer);
|
|
730
|
+
* // Example output: "I recommend croissants.
|
|
731
|
+
* // They are a classic buttery pastry perfect for breakfast..."
|
|
732
|
+
* ```
|
|
733
|
+
*/
|
|
734
|
+
aiRAG(query: string, columnId: string, columnText: string, nbResults: number, options?: {
|
|
735
|
+
cache?: boolean;
|
|
736
|
+
verbose?: boolean;
|
|
737
|
+
includeThoughts?: boolean;
|
|
738
|
+
systemPrompt?: string;
|
|
739
|
+
modelContextWindow?: number;
|
|
740
|
+
embeddingsModelContextWindow?: number;
|
|
741
|
+
createIndex?: boolean;
|
|
742
|
+
thinkingBudget?: number;
|
|
743
|
+
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
744
|
+
webSearch?: boolean;
|
|
745
|
+
safetyEnabled?: boolean;
|
|
746
|
+
model?: string;
|
|
747
|
+
temperature?: number;
|
|
748
|
+
apiKey?: string;
|
|
749
|
+
vertex?: boolean;
|
|
750
|
+
project?: string;
|
|
751
|
+
location?: string;
|
|
752
|
+
ollama?: boolean | Ollama;
|
|
753
|
+
metrics?: {
|
|
754
|
+
totalCost: number;
|
|
755
|
+
totalInputTokens: number;
|
|
756
|
+
totalOutputTokens: number;
|
|
757
|
+
totalRequests: number;
|
|
758
|
+
};
|
|
759
|
+
embeddingsModel?: string;
|
|
760
|
+
ollamaEmbeddings?: boolean;
|
|
761
|
+
embeddingsConcurrent?: number;
|
|
762
|
+
stemmer?: "arabic" | "basque" | "catalan" | "danish" | "dutch" | "english" | "finnish" | "french" | "german" | "greek" | "hindi" | "hungarian" | "indonesian" | "irish" | "italian" | "lithuanian" | "nepali" | "norwegian" | "porter" | "portuguese" | "romanian" | "russian" | "serbian" | "spanish" | "swedish" | "tamil" | "turkish" | "none";
|
|
763
|
+
stopwords?: string;
|
|
764
|
+
ignore?: string;
|
|
765
|
+
stripAccents?: boolean;
|
|
766
|
+
lower?: boolean;
|
|
767
|
+
k?: number;
|
|
768
|
+
b?: number;
|
|
769
|
+
conjunctive?: boolean;
|
|
770
|
+
bm25?: boolean;
|
|
771
|
+
bm25MinScore?: number;
|
|
772
|
+
bm25ScoreColumn?: string;
|
|
773
|
+
vectorSearch?: boolean;
|
|
774
|
+
vectorMinSimilarity?: number;
|
|
775
|
+
vectorSimilarityColumn?: string;
|
|
776
|
+
efConstruction?: number;
|
|
777
|
+
efSearch?: number;
|
|
778
|
+
M?: number;
|
|
779
|
+
}): Promise<string>;
|
|
780
|
+
/**
|
|
781
|
+
* Generates and executes a SQL query based on a prompt.
|
|
782
|
+
* Additional instructions, such as column types, are automatically added to your prompt. Set `verbose` to `true` to see the full prompt.
|
|
783
|
+
*
|
|
784
|
+
* This method supports Google Gemini, Vertex AI, and local models running with Ollama. Credentials and model selection are determined by environment variables (`AI_KEY`, `AI_PROJECT`, `AI_LOCATION`, `AI_MODEL`) or directly via `options`, with `options` taking precedence.
|
|
785
|
+
*
|
|
786
|
+
* For Ollama, set the `OLLAMA` environment variable to `true`, ensure Ollama is running, and set `AI_MODEL` to your desired model name. You can also pass your instance of Ollama to the `ollama` option.
|
|
787
|
+
*
|
|
788
|
+
* Temperature is set to 0 to aim for reproducible results. For future consistency, it's recommended to copy the generated query and execute it manually using `await sdb.customQuery(query)` or to cache the query using the `cache` option.
|
|
789
|
+
*
|
|
790
|
+
* When `cache` is `true`, the generated query will be cached locally in `.journalism-cache` (from the `askAI` function in the [journalism library](https://github.com/nshiab/journalism)), saving resources and time. Remember to add `.journalism-cache` to your `.gitignore`.
|
|
791
|
+
*
|
|
792
|
+
* @param prompt - The input string to guide the AI in generating the SQL query.
|
|
793
|
+
* @param options - Configuration options for the AI request.
|
|
794
|
+
* @param options.extraInstructions - Additional instructions to append to the prompt, providing more context or guidance for the AI.
|
|
795
|
+
* @param options.cache - If `true`, the generated query will be cached locally. Defaults to `false`.
|
|
796
|
+
* @param options.model - The AI model to use. Defaults to the `AI_MODEL` environment variable.
|
|
797
|
+
* @param options.apiKey - The API key for the AI service. Defaults to the `AI_KEY` environment variable.
|
|
798
|
+
* @param options.vertex - If `true`, uses Vertex AI. Automatically set to `true` if `AI_PROJECT` and `AI_LOCATION` are set in the environment. Defaults to `false`.
|
|
799
|
+
* @param options.project - The Google Cloud project ID for Vertex AI. Defaults to the `AI_PROJECT` environment variable.
|
|
800
|
+
* @param options.location - The Google Cloud location for Vertex AI. Defaults to the `AI_LOCATION` environment variable.
|
|
801
|
+
* @param options.ollama - If `true`, uses Ollama. Defaults to the `OLLAMA` environment variable. If you want your Ollama instance to be used, you can pass it here too.
|
|
802
|
+
* @param options.contextWindow - An option to specify the context window size for Ollama models. By default, Ollama sets this depending on the model, which can be lower than the actual maximum context window size of the model.
|
|
803
|
+
* @param options.thinkingBudget - Sets the reasoning token budget: 0 to disable (default, though some models may reason regardless), -1 for a dynamic budget, or > 0 for a fixed budget. For Ollama models, any non-zero value simply enables reasoning, ignoring the specific budget amount.
|
|
804
|
+
* @param options.thinkingLevel - Sets the thinking level for reasoning: "minimal", "low", "medium", or "high", which some models expect instead of `thinkingBudget`. Takes precedence over `thinkingBudget` if both are provided. For Ollama models, any value enables reasoning.
|
|
805
|
+
* @param options.temperature - The temperature setting for the AI model, controlling the randomness of the output. Defaults to `0`.
|
|
806
|
+
* @param options.safetyEnabled - Controls whether safety filters are enabled. If set to `true`, filters are active; if `false`, they are disabled. By default, this is `false` when using Vertex AI and `true` otherwise. This setting can be explicitly overridden for any model.
|
|
807
|
+
* @param options.outputTable - The name of a new table where the results will be stored. If not provided, the current table will be replaced with the query results.
|
|
808
|
+
* @param options.verbose - If `true`, logs additional debugging information, including the full prompt sent to the AI. Defaults to `false`.
|
|
809
|
+
* @param options.includeThoughts - If `true`, includes the AI model's reasoning process in the logged output when using models that support extended thinking. Only relevant when used with thinking-capable models. Defaults to `false`.
|
|
810
|
+
* @returns A promise that resolves to the SimpleTable instance containing the query results (either the modified current table or a new table).
|
|
811
|
+
* @category AI
|
|
812
|
+
*
|
|
813
|
+
* @example
|
|
814
|
+
* ```ts
|
|
815
|
+
* // The AI will generate a query that will be executed, and
|
|
816
|
+
* // the result will replace the existing table.
|
|
817
|
+
* // If run again, it will use the previous query from the cache.
|
|
818
|
+
* // Don't forget to add .journalism-cache to your .gitignore file!
|
|
819
|
+
* await table.aiQuery(
|
|
820
|
+
* "Give me the average salary by department",
|
|
821
|
+
* { cache: true, verbose: true }
|
|
822
|
+
* );
|
|
823
|
+
* ```
|
|
824
|
+
*
|
|
825
|
+
* @example
|
|
826
|
+
* ```ts
|
|
827
|
+
* // Save results to a new table without modifying the original
|
|
828
|
+
* const results = await table.aiQuery(
|
|
829
|
+
* "Give me the top 10 employees by salary",
|
|
830
|
+
* { outputTable: "top_employees" }
|
|
831
|
+
* );
|
|
832
|
+
*
|
|
833
|
+
* // Original table remains unchanged
|
|
834
|
+
* const allEmployees = await table.getNbRows();
|
|
835
|
+
* console.log(allEmployees); // All employees
|
|
836
|
+
*
|
|
837
|
+
* // New table contains only query results
|
|
838
|
+
* const topEmployees = await results.getNbRows();
|
|
839
|
+
* console.log(topEmployees); // 10
|
|
840
|
+
* ```
|
|
841
|
+
*/
|
|
842
|
+
aiQuery(prompt: string, options?: {
|
|
843
|
+
extraInstructions?: string;
|
|
844
|
+
cache?: boolean;
|
|
845
|
+
model?: string;
|
|
846
|
+
apiKey?: string;
|
|
847
|
+
vertex?: boolean;
|
|
848
|
+
project?: string;
|
|
849
|
+
includeThoughts?: boolean;
|
|
850
|
+
location?: string;
|
|
851
|
+
ollama?: boolean | Ollama;
|
|
852
|
+
contextWindow?: number;
|
|
853
|
+
thinkingBudget?: number;
|
|
854
|
+
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
855
|
+
temperature?: number;
|
|
856
|
+
safetyEnabled?: boolean;
|
|
857
|
+
outputTable?: string;
|
|
858
|
+
verbose?: boolean;
|
|
859
|
+
}): Promise<SimpleTable>;
|
|
860
|
+
/**
|
|
861
|
+
* Writes the table data to a Google Sheet.
|
|
862
|
+
* This method uses the `overwriteSheetData` function from the [journalism library](https://jsr.io/@nshiab/journalism). Refer to its documentation for more details.
|
|
863
|
+
*
|
|
864
|
+
* By default, authentication is handled via environment variables (GOOGLE_PRIVATE_KEY and GOOGLE_SERVICE_ACCOUNT_EMAIL). Alternatively, you can use GOOGLE_APPLICATION_CREDENTIALS pointing to a service account JSON file. For detailed setup instructions, refer to the node-google-spreadsheet authentication guide: https://theoephraim.github.io/node-google-spreadsheet/#/guides/authentication.
|
|
865
|
+
*
|
|
866
|
+
* @param sheetUrl - The URL pointing to a specific Google Sheet (e.g., `"https://docs.google.com/spreadsheets/d/.../edit#gid=0"`).
|
|
867
|
+
* @param options - An optional object with configuration options:
|
|
868
|
+
* @param options.prepend - A string to prepend to the sheet data (e.g., a title or header).
|
|
869
|
+
* @param options.lastUpdate - If `true`, adds a timestamp of the last update to the sheet.
|
|
870
|
+
* @param options.timeZone - The time zone to use for the last update timestamp.
|
|
871
|
+
* @param options.raw - If `true`, writes the data as raw values without formatting.
|
|
872
|
+
* @param options.apiEmail - If your API email is stored under a different environment variable name, use this option to specify it.
|
|
873
|
+
* @param options.apiKey - If your API key is stored under a different environment variable name, use this option to specify it.
|
|
874
|
+
* @returns A promise that resolves when the data has been written to the sheet.
|
|
875
|
+
* @category Exporting Data
|
|
876
|
+
*
|
|
877
|
+
* @example
|
|
878
|
+
* ```ts
|
|
879
|
+
* // Write the table data to a Google Sheet
|
|
880
|
+
* await table.toSheet("https://docs.google.com/spreadsheets/d/.../edit#gid=0");
|
|
881
|
+
* ```
|
|
882
|
+
*/
|
|
883
|
+
toSheet(sheetUrl: string, options?: {
|
|
884
|
+
prepend?: string;
|
|
885
|
+
lastUpdate?: boolean;
|
|
886
|
+
timeZone?: "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon";
|
|
887
|
+
raw?: boolean;
|
|
888
|
+
apiEmail?: string;
|
|
889
|
+
apiKey?: string;
|
|
890
|
+
}): Promise<void>;
|
|
891
|
+
/**
|
|
892
|
+
* Loads data from a Google Sheet into the table.
|
|
893
|
+
* This method uses the `getSheetData` function from the [journalism library](https://jsr.io/@nshiab/journalism). Refer to its documentation for more details.
|
|
894
|
+
*
|
|
895
|
+
* By default, authentication is handled via environment variables (GOOGLE_PRIVATE_KEY and GOOGLE_SERVICE_ACCOUNT_EMAIL). Alternatively, you can use GOOGLE_APPLICATION_CREDENTIALS pointing to a service account JSON file. For detailed setup instructions, refer to the node-google-spreadsheet authentication guide: https://theoephraim.github.io/node-google-spreadsheet/#/guides/authentication.
|
|
896
|
+
*
|
|
897
|
+
* @param sheetUrl - The URL pointing to a specific Google Sheet (e.g., `"https://docs.google.com/spreadsheets/d/.../edit#gid=0"`).
|
|
898
|
+
* @param options - An optional object with configuration options:
|
|
899
|
+
* @param options.skip - The number of rows to skip from the top of the sheet before reading data. Useful when the sheet contains metadata or headers that should not be included in the data.
|
|
900
|
+
* @param options.apiEmail - If your API email is stored under a different environment variable name, use this option to specify it.
|
|
901
|
+
* @param options.apiKey - If your API key is stored under a different environment variable name, use this option to specify it.
|
|
902
|
+
* @returns A promise that resolves when the data has been loaded into the table.
|
|
903
|
+
* @category Loading Data
|
|
904
|
+
*
|
|
905
|
+
* @example
|
|
906
|
+
* ```ts
|
|
907
|
+
* // Load data from a Google Sheet
|
|
908
|
+
* await table.loadSheet("https://docs.google.com/spreadsheets/d/.../edit#gid=0");
|
|
909
|
+
* ```
|
|
910
|
+
*
|
|
911
|
+
* @example
|
|
912
|
+
* ```ts
|
|
913
|
+
* // Load data from a Google Sheet, skipping the first 2 rows (e.g., to skip a prepended message and timestamp)
|
|
914
|
+
* await table.loadSheet("https://docs.google.com/spreadsheets/d/.../edit#gid=0", {
|
|
915
|
+
* skip: 2,
|
|
916
|
+
* });
|
|
917
|
+
* ```
|
|
918
|
+
*/
|
|
919
|
+
loadSheet(sheetUrl: string, options?: {
|
|
920
|
+
skip?: number;
|
|
921
|
+
apiEmail?: string;
|
|
922
|
+
apiKey?: string;
|
|
923
|
+
}): Promise<void>;
|
|
924
|
+
/**
|
|
925
|
+
* Creates an [Observable Plot](https://github.com/observablehq/plot) chart as an image file (.png or .svg) from the table data.
|
|
926
|
+
* To create maps, use the `writeMap` method.
|
|
927
|
+
*
|
|
928
|
+
* @param chart - A function that takes data (as an array of objects) and returns an Observable Plot chart (an `SVGSVGElement` or `HTMLElement`).
|
|
929
|
+
* @param path - The absolute path where the chart image will be saved (e.g., `"./output/chart.png"`).
|
|
930
|
+
* @param options - Optional object containing additional settings:
|
|
931
|
+
* @param options.style - A CSS string to customize the chart's appearance. This is applied to a `<div>` element wrapping the Plot chart (which has the id `chart`). Use this if the Plot `style` option is insufficient.
|
|
932
|
+
* @param options.dark - If `true`, switches the chart to dark mode. Defaults to `false`.
|
|
933
|
+
* @returns A promise that resolves when the chart image has been saved.
|
|
934
|
+
* @category Dataviz
|
|
935
|
+
*
|
|
936
|
+
* @example
|
|
937
|
+
* ```ts
|
|
938
|
+
* import { dot, plot } from "@observablehq/plot";
|
|
939
|
+
*
|
|
940
|
+
* const sdb = new SimpleDB();
|
|
941
|
+
* const table = sdb.newTable();
|
|
942
|
+
* const data = [{ year: 2024, value: 10 }, { year: 2025, value: 15 }];
|
|
943
|
+
* await table.loadArray(data);
|
|
944
|
+
*
|
|
945
|
+
* const chartFunction = (plotData: unknown[]) =>
|
|
946
|
+
* plot({
|
|
947
|
+
* marks: [
|
|
948
|
+
* dot(plotData, { x: "year", y: "value" }),
|
|
949
|
+
* ],
|
|
950
|
+
* });
|
|
951
|
+
*
|
|
952
|
+
* const outputPath = "output/chart.png";
|
|
953
|
+
*
|
|
954
|
+
* await table.writeChart(chartFunction, outputPath);
|
|
955
|
+
* ```
|
|
956
|
+
*/
|
|
957
|
+
writeChart(chart: (data: unknown[]) => SVGSVGElement | HTMLElement, path: string, options?: {
|
|
958
|
+
style?: string;
|
|
959
|
+
dark?: boolean;
|
|
960
|
+
}): Promise<void>;
|
|
961
|
+
/**
|
|
962
|
+
* Creates an [Observable Plot](https://github.com/observablehq/plot) map as an image file (.png or .svg) from the table's geospatial data.
|
|
963
|
+
* To create charts from non-geospatial data, use the `writeChart` method.
|
|
964
|
+
*
|
|
965
|
+
* @param map - A function that takes geospatial data (in GeoJSON format) and returns an Observable Plot map (an `SVGSVGElement` or `HTMLElement`).
|
|
966
|
+
* @param path - The absolute path where the map image will be saved (e.g., `"./output/map.png"`).
|
|
967
|
+
* @param options - An optional object with configuration options:
|
|
968
|
+
* @param options.column - The name of the column storing geometries. If there is only one geometry column, it will be used by default.
|
|
969
|
+
* @param options.rewind - If `true`, rewinds the coordinates of polygons to follow the spherical winding order (important for D3.js). Defaults to `true`.
|
|
970
|
+
* @param options.style - A CSS string to customize the map's appearance. This is applied to a `<div>` element wrapping the Plot map (which has the ID `chart`). Use this if the Plot `style` option is insufficient.
|
|
971
|
+
* @param options.dark - If `true`, switches the map to dark mode. Defaults to `false`.
|
|
972
|
+
* @returns A promise that resolves when the map image has been saved.
|
|
973
|
+
* @category Dataviz
|
|
974
|
+
*
|
|
975
|
+
* @example
|
|
976
|
+
* ```ts
|
|
977
|
+
* import { geo, plot } from "@observablehq/plot";
|
|
978
|
+
*
|
|
979
|
+
* const sdb = new SimpleDB();
|
|
980
|
+
* const table = sdb.newTable();
|
|
981
|
+
* await table.loadGeoData("./CanadianProvincesAndTerritories.geojson");
|
|
982
|
+
*
|
|
983
|
+
* const mapFunction = (geoJsonData: { features: unknown[] }) =>
|
|
984
|
+
* plot({
|
|
985
|
+
* projection: {
|
|
986
|
+
* type: "conic-conformal",
|
|
987
|
+
* rotate: [100, -60],
|
|
988
|
+
* domain: geoJsonData,
|
|
989
|
+
* },
|
|
990
|
+
* marks: [
|
|
991
|
+
* geo(geoJsonData, { stroke: "black", fill: "lightblue" }),
|
|
992
|
+
* ],
|
|
993
|
+
* });
|
|
994
|
+
*
|
|
995
|
+
* const outputPath = "./output/map.png";
|
|
996
|
+
*
|
|
997
|
+
* await table.writeMap(mapFunction, outputPath);
|
|
998
|
+
* ```
|
|
999
|
+
*/
|
|
1000
|
+
writeMap(map: (geoData: {
|
|
1001
|
+
features: {
|
|
1002
|
+
properties: {
|
|
1003
|
+
[key: string]: unknown;
|
|
1004
|
+
};
|
|
1005
|
+
}[];
|
|
1006
|
+
}) => SVGSVGElement | HTMLElement, path: string, options?: {
|
|
1007
|
+
column?: string;
|
|
1008
|
+
rewind?: boolean;
|
|
1009
|
+
style?: string;
|
|
1010
|
+
dark?: boolean;
|
|
1011
|
+
}): Promise<void>;
|
|
1012
|
+
/**
|
|
1013
|
+
* Generates and logs a line chart to the console. The data should be sorted by the x-axis values for accurate representation.
|
|
1014
|
+
*
|
|
1015
|
+
* **Data Type Requirements:**
|
|
1016
|
+
* - **X-axis values**: Must be `number` or `Date` objects.
|
|
1017
|
+
* - **Y-axis values**: Must be `number` values.
|
|
1018
|
+
* - All values must be non-null and defined.
|
|
1019
|
+
*
|
|
1020
|
+
* @param x - The name of the column to be used for the x-axis. Values must be numbers or Date objects.
|
|
1021
|
+
* @param y - The name of the column to be used for the y-axis. Values must be numbers.
|
|
1022
|
+
* @param options - An optional object with configuration options:
|
|
1023
|
+
* @param options.formatX - A function to format the x-axis values for display. It receives the raw x-value as input and should return a string. If the first data point's x value is a Date, it defaults to formatting the date as "YYYY-MM-DD".
|
|
1024
|
+
* @param options.formatY - A function to format the y-axis values for display. It receives the raw y-value as input and should return a string.
|
|
1025
|
+
* @param options.smallMultiples - The name of a column to create small multiples (also known as facets or trellis charts). Each unique value in this column will generate a separate chart.
|
|
1026
|
+
* @param options.fixedScales - If `true`, all small multiples will share the same y-axis scale. Defaults to `false`.
|
|
1027
|
+
* @param options.smallMultiplesPerRow - The number of small multiples to display per row.
|
|
1028
|
+
* @param options.width - The width of the chart in characters.
|
|
1029
|
+
* @param options.height - The height of the chart in characters.
|
|
1030
|
+
* @returns A promise that resolves when the chart has been logged to the console.
|
|
1031
|
+
* @category Dataviz
|
|
1032
|
+
*
|
|
1033
|
+
* @example
|
|
1034
|
+
* // Basic line chart
|
|
1035
|
+
* ```typescript
|
|
1036
|
+
* const data = [
|
|
1037
|
+
* { date: new Date("2023-01-01"), value: 10 },
|
|
1038
|
+
* { date: new Date("2023-02-01"), value: 20 },
|
|
1039
|
+
* { date: new Date("2023-03-01"), value: 30 },
|
|
1040
|
+
* { date: new Date("2023-04-01"), value: 40 },
|
|
1041
|
+
* ]
|
|
1042
|
+
* await table.loadArray(data)
|
|
1043
|
+
* await table.convert({ date: "string" }, { datetimeFormat: "%x" })
|
|
1044
|
+
* await table.logLineChart("date", "value")
|
|
1045
|
+
* ```
|
|
1046
|
+
*
|
|
1047
|
+
* @example
|
|
1048
|
+
* // Line chart with small multiples
|
|
1049
|
+
* ```typescript
|
|
1050
|
+
* const data = [
|
|
1051
|
+
* { date: new Date("2023-01-01"), value: 10, category: "A" },
|
|
1052
|
+
* { date: new Date("2023-02-01"), value: 20, category: "A" },
|
|
1053
|
+
* { date: new Date("2023-03-01"), value: 30, category: "A" },
|
|
1054
|
+
* { date: new Date("2023-04-01"), value: 40, category: "A" },
|
|
1055
|
+
* { date: new Date("2023-01-01"), value: 15, category: "B" },
|
|
1056
|
+
* { date: new Date("2023-02-01"), value: 25, category: "B" },
|
|
1057
|
+
* { date: new Date("2023-03-01"), value: 35, category: "B" },
|
|
1058
|
+
* { date: new Date("2023-04-01"), value: 45, category: "B" },
|
|
1059
|
+
* ]
|
|
1060
|
+
* await table.loadArray(data)
|
|
1061
|
+
* await table.convert({ date: "string" }, { datetimeFormat: "%x" })
|
|
1062
|
+
* await table.logLineChart("date", "value", {
|
|
1063
|
+
* smallMultiples: "category",
|
|
1064
|
+
* })
|
|
1065
|
+
* ```
|
|
1066
|
+
*/
|
|
1067
|
+
logLineChart(x: string, y: string, options?: {
|
|
1068
|
+
formatX?: (d: unknown) => string;
|
|
1069
|
+
formatY?: (d: unknown) => string;
|
|
1070
|
+
smallMultiples?: string;
|
|
1071
|
+
fixedScales?: boolean;
|
|
1072
|
+
smallMultiplesPerRow?: number;
|
|
1073
|
+
width?: number;
|
|
1074
|
+
height?: number;
|
|
1075
|
+
}): Promise<void>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Generates and logs a dot chart to the console. The data should be sorted by the x-axis values for accurate representation.
|
|
1078
|
+
*
|
|
1079
|
+
* **Data Type Requirements:**
|
|
1080
|
+
* - **X-axis values**: Must be `number` or `Date` objects.
|
|
1081
|
+
* - **Y-axis values**: Must be `number` values.
|
|
1082
|
+
* - All values must be non-null and defined.
|
|
1083
|
+
*
|
|
1084
|
+
* @param x - The name of the column to be used for the x-axis. Values must be numbers or Date objects.
|
|
1085
|
+
* @param y - The name of the column to be used for the y-axis. Values must be numbers.
|
|
1086
|
+
* @param options - An optional object with configuration options:
|
|
1087
|
+
* @param options.formatX - A function to format the x-axis values for display. It receives the raw x-value as input and should return a string. If the first data point's x value is a Date, it defaults to formatting the date as "YYYY-MM-DD".
|
|
1088
|
+
* @param options.formatY - A function to format the y-axis values for display. It receives the raw y-value as input and should return a string.
|
|
1089
|
+
* @param options.smallMultiples - The name of a column to create small multiples (also known as facets). Each unique value in this column will generate a separate chart.
|
|
1090
|
+
* @param options.fixedScales - If `true`, all small multiples will share the same y-axis scale. Defaults to `false`.
|
|
1091
|
+
* @param options.smallMultiplesPerRow - The number of small multiples to display per row.
|
|
1092
|
+
* @param options.width - The width of the chart in characters.
|
|
1093
|
+
* @param options.height - The height of the chart in characters.
|
|
1094
|
+
* @returns A promise that resolves when the chart has been logged to the console.
|
|
1095
|
+
* @category Dataviz
|
|
1096
|
+
*
|
|
1097
|
+
* @example
|
|
1098
|
+
* // Basic dot chart
|
|
1099
|
+
* ```typescript
|
|
1100
|
+
* const data = [
|
|
1101
|
+
* { date: new Date("2023-01-01"), value: 10 },
|
|
1102
|
+
* { date: new Date("2023-02-01"), value: 20 },
|
|
1103
|
+
* { date: new Date("2023-03-01"), value: 30 },
|
|
1104
|
+
* { date: new Date("2023-04-01"), value: 40 },
|
|
1105
|
+
* ]
|
|
1106
|
+
* await table.loadArray(data)
|
|
1107
|
+
* await table.convert({ date: "string" }, { datetimeFormat: "%x" })
|
|
1108
|
+
* await table.logDotChart("date", "value")
|
|
1109
|
+
* ```
|
|
1110
|
+
*
|
|
1111
|
+
* @example
|
|
1112
|
+
* // Dot chart with small multiples
|
|
1113
|
+
* ```typescript
|
|
1114
|
+
* const data = [
|
|
1115
|
+
* { date: new Date("2023-01-01"), value: 10, category: "A" },
|
|
1116
|
+
* { date: new Date("2023-02-01"), value: 20, category: "A" },
|
|
1117
|
+
* { date: new Date("2023-03-01"), value: 30, category: "A" },
|
|
1118
|
+
* { date: new Date("2023-04-01"), value: 40, category: "A" },
|
|
1119
|
+
* { date: new Date("2023-01-01"), value: 15, category: "B" },
|
|
1120
|
+
* { date: new Date("2023-02-01"), value: 25, category: "B" },
|
|
1121
|
+
* { date: new Date("2023-03-01"), value: 35, category: "B" },
|
|
1122
|
+
* { date: new Date("2023-04-01"), value: 45, category: "B" },
|
|
1123
|
+
* ]
|
|
1124
|
+
* await table.loadArray(data)
|
|
1125
|
+
* await table.convert({ date: "string" }, { datetimeFormat: "%x" })
|
|
1126
|
+
* await table.logDotChart("date", "value", {
|
|
1127
|
+
* smallMultiples: "category",
|
|
1128
|
+
* })
|
|
1129
|
+
* ```
|
|
1130
|
+
*/
|
|
1131
|
+
logDotChart(x: string, y: string, options?: {
|
|
1132
|
+
formatX?: (d: unknown) => string;
|
|
1133
|
+
formatY?: (d: unknown) => string;
|
|
1134
|
+
smallMultiples?: string;
|
|
1135
|
+
fixedScales?: boolean;
|
|
1136
|
+
smallMultiplesPerRow?: number;
|
|
1137
|
+
width?: number;
|
|
1138
|
+
height?: number;
|
|
1139
|
+
}): Promise<void>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Generates and logs a bar chart to the console.
|
|
1142
|
+
*
|
|
1143
|
+
* @param labels - The name of the column to be used for the labels (categories).
|
|
1144
|
+
* @param values - The name of the column to be used for the values.
|
|
1145
|
+
* @param options - An optional object with configuration options:
|
|
1146
|
+
* @param options.formatLabels - A function to format the labels. Defaults to converting the label to a string.
|
|
1147
|
+
* @param options.formatValues - A function to format the values. Defaults to converting the value to a string.
|
|
1148
|
+
* @param options.width - The width of the chart in characters. Defaults to 40.
|
|
1149
|
+
* @returns A promise that resolves when the chart has been logged to the console.
|
|
1150
|
+
* @category Dataviz
|
|
1151
|
+
*
|
|
1152
|
+
* @example
|
|
1153
|
+
* ```typescript
|
|
1154
|
+
* const data = [
|
|
1155
|
+
* { category: "A", value: 10 },
|
|
1156
|
+
* { category: "B", value: 20 },
|
|
1157
|
+
* ]
|
|
1158
|
+
* await table.loadArray(data)
|
|
1159
|
+
* await table.logBarChart("category", "value")
|
|
1160
|
+
* ```
|
|
1161
|
+
*/
|
|
1162
|
+
logBarChart(labels: string, values: string, options?: {
|
|
1163
|
+
formatLabels?: (d: unknown) => string;
|
|
1164
|
+
formatValues?: (d: unknown) => string;
|
|
1165
|
+
width?: number;
|
|
1166
|
+
}): Promise<void>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Generates and logs a histogram of a numeric column to the console.
|
|
1169
|
+
*
|
|
1170
|
+
* @param values - The name of the numeric column for which to generate the histogram.
|
|
1171
|
+
* @param options - An optional object with configuration options:
|
|
1172
|
+
* @param options.bins - The number of bins (intervals) to use for the histogram. Defaults to 10.
|
|
1173
|
+
* @param options.formatLabels - A function to format the labels for the histogram bins. It receives the lower and upper bounds of each bin as arguments.
|
|
1174
|
+
* @param options.compact - If `true`, the histogram will be displayed in a more compact format. Defaults to `false`.
|
|
1175
|
+
* @param options.width - The maximum width of the histogram bars in characters.
|
|
1176
|
+
* @returns A promise that resolves when the histogram has been logged to the console.
|
|
1177
|
+
* @category Dataviz
|
|
1178
|
+
*
|
|
1179
|
+
* @example
|
|
1180
|
+
* // Basic histogram of the 'temperature' column
|
|
1181
|
+
* ```typescript
|
|
1182
|
+
* await table.logHistogram("temperature")
|
|
1183
|
+
* ```
|
|
1184
|
+
*
|
|
1185
|
+
* @example
|
|
1186
|
+
* // Histogram with 20 bins and custom label formatting
|
|
1187
|
+
* ```typescript
|
|
1188
|
+
* await table.logHistogram("age", {
|
|
1189
|
+
* bins: 20,
|
|
1190
|
+
* formatLabels: (min, max) => `${min}-${max} years`,
|
|
1191
|
+
* });
|
|
1192
|
+
* ```
|
|
1193
|
+
*/
|
|
1194
|
+
logHistogram(values: string, options?: {
|
|
1195
|
+
bins?: number;
|
|
1196
|
+
formatLabels?: (min: number, max: number) => string;
|
|
1197
|
+
compact?: boolean;
|
|
1198
|
+
width?: number;
|
|
1199
|
+
}): Promise<void>;
|
|
1200
|
+
}
|
|
1201
|
+
//# sourceMappingURL=SimpleTable.d.ts.map
|