nodejs-polars
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -9,3 +9,3 @@ /// <reference types="node" /> | ||
import { ColumnSelection, FillNullStrategy, ColumnsOrExpr, ValueOrArray, ExprOrString } from "./utils"; | ||
import { Arithmetic, Sample } from "./shared_traits"; | ||
import { Arithmetic, Deserialize, Sample, Serialize } from "./shared_traits"; | ||
declare const inspect: unique symbol; | ||
@@ -16,6 +16,2 @@ declare type WriteCsvOptions = { | ||
}; | ||
declare type WriteJsonOptions = { | ||
orient?: "row" | "col" | "dataframe"; | ||
multiline?: boolean; | ||
}; | ||
declare type WriteParquetOptions = { | ||
@@ -203,3 +199,3 @@ compression?: "uncompressed" | "snappy" | "gzip" | "lzo" | "brotli" | "lz4" | "zstd"; | ||
*/ | ||
export interface DataFrame extends Arithmetic<DataFrame>, Sample<DataFrame>, WriteMethods { | ||
export interface DataFrame extends Arithmetic<DataFrame>, Sample<DataFrame>, WriteMethods, Serialize { | ||
/** @ignore */ | ||
@@ -1165,7 +1161,2 @@ _df: any; | ||
tail(length?: number): DataFrame; | ||
/** serializes the DataFrame to a [bincode buffer](https://docs.rs/bincode/latest/bincode/index.html) | ||
* @example | ||
* pl.DataFrame.fromBinary(df.toBinary()) | ||
*/ | ||
toBinary(): Buffer; | ||
/** @deprecated *since 0.4.0* use {@link writeCSV} */ | ||
@@ -1186,11 +1177,5 @@ toCSV(destOrOptions?: any, options?: any): any; | ||
toRecords(): Record<string, any>[]; | ||
/** compat with `JSON.stringify` */ | ||
toJSON(): string; | ||
/** | ||
* @deprecated | ||
* @since 0.4.0 | ||
* @use {@link writeJSON} | ||
* this will be removed in a later version to prevent collision with native `toJSON` method | ||
* */ | ||
toJSON(options?: WriteJsonOptions): string; | ||
toJSON(destination: string | Writable, options?: WriteJsonOptions): void; | ||
/** | ||
* Converts dataframe object into column oriented javascript objects | ||
@@ -1214,2 +1199,24 @@ * @example | ||
/** | ||
Convert a ``DataFrame`` to a ``Series`` of type ``Struct`` | ||
@param name Name for the struct Series | ||
@example | ||
``` | ||
>>> df = pl.DataFrame({ | ||
... "a": [1, 2, 3, 4, 5], | ||
... "b": ["one", "two", "three", "four", "five"], | ||
... }) | ||
>>> df.toStruct("nums") | ||
shape: (5,) | ||
Series: 'nums' [struct[2]{'a': i64, 'b': str}] | ||
[ | ||
{1,"one"} | ||
{2,"two"} | ||
{3,"three"} | ||
{4,"four"} | ||
{5,"five"} | ||
] | ||
``` | ||
*/ | ||
toStruct(name: string): Series; | ||
/** | ||
* Transpose a DataFrame over the diagonal. | ||
@@ -1305,2 +1312,41 @@ * | ||
/** | ||
Decompose a struct into its fields. The fields will be inserted in to the `DataFrame` on the | ||
location of the `struct` type. | ||
@param names Names of the struct columns that will be decomposed by its fields | ||
@example | ||
``` | ||
>>> df = pl.DataFrame({ | ||
... "int": [1, 2], | ||
... "str": ["a", "b"], | ||
... "bool": [true, null], | ||
... "list": [[1, 2], [3]], | ||
... }) | ||
... .toStruct("my_struct") | ||
... .toFrame() | ||
>>> df | ||
shape: (2, 1) | ||
┌─────────────────────────────┐ | ||
│ my_struct │ | ||
│ --- │ | ||
│ struct[4]{'int',...,'list'} │ | ||
╞═════════════════════════════╡ | ||
│ {1,"a",true,[1, 2]} │ | ||
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
│ {2,"b",null,[3]} │ | ||
└─────────────────────────────┘ | ||
>>> df.unnest("my_struct") | ||
shape: (2, 4) | ||
┌─────┬─────┬──────┬────────────┐ | ||
│ int ┆ str ┆ bool ┆ list │ | ||
│ --- ┆ --- ┆ --- ┆ --- │ | ||
│ i64 ┆ str ┆ bool ┆ list [i64] │ | ||
╞═════╪═════╪══════╪════════════╡ | ||
│ 1 ┆ a ┆ true ┆ [1, 2] │ | ||
├╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
│ 2 ┆ b ┆ null ┆ [3] │ | ||
└─────┴─────┴──────┴────────────┘ | ||
``` | ||
*/ | ||
unnest(names: string | string[]): DataFrame; | ||
/** | ||
* Aggregate the columns of this DataFrame to their variance value. | ||
@@ -1388,3 +1434,3 @@ * @example | ||
export declare const _DataFrame: (_df: any) => DataFrame; | ||
export interface DataFrameConstructor { | ||
export interface DataFrameConstructor extends Deserialize<DataFrame> { | ||
(): DataFrame; | ||
@@ -1398,8 +1444,4 @@ (data: any, options?: { | ||
isDataFrame(arg: any): arg is DataFrame; | ||
/** | ||
* @param binary used to serialize/deserialize dataframe. This will only work with the output from expr.toBinary(). | ||
*/ | ||
fromBinary(binary: Buffer): DataFrame; | ||
} | ||
export declare const DataFrame: DataFrameConstructor; | ||
export {}; |
@@ -359,4 +359,4 @@ "use strict"; | ||
tail: (length = 5) => wrap("tail", length), | ||
toBinary() { | ||
return _df.toBincode(); | ||
serialize(format) { | ||
return _df.serialize(format); | ||
}, | ||
@@ -384,4 +384,8 @@ toCSV(...args) { | ||
}, | ||
toJSON(arg0, options) { | ||
return _df.toJs(); | ||
toJSON(...args) { | ||
// this is passed by `JSON.stringify` when calling `toJSON()` | ||
if (args[0] === "") { | ||
return _df.toJs(); | ||
} | ||
return _df.serialize("json").toString(); | ||
}, | ||
@@ -461,2 +465,5 @@ toObject() { | ||
toSeries: (index = 0) => (0, series_1._Series)(_df.selectAtIdx(index)), | ||
toStruct(name) { | ||
return (0, series_1._Series)(_df.toStruct(name)); | ||
}, | ||
toString() { | ||
@@ -484,2 +491,6 @@ return _df.toString(); | ||
}, | ||
unnest(names) { | ||
names = Array.isArray(names) ? names : [names]; | ||
return (0, exports._DataFrame)(_df.unnest(names)); | ||
}, | ||
var() { | ||
@@ -596,8 +607,5 @@ return wrap("var"); | ||
const isDataFrame = (anyVal) => anyVal?.[Symbol.toStringTag] === "DataFrame"; | ||
const fromBinary = (buf) => { | ||
return (0, exports._DataFrame)(polars_internal_1.default.JsDataFrame.fromBincode(buf)); | ||
}; | ||
exports.DataFrame = Object.assign(DataFrameConstructor, { | ||
isDataFrame, | ||
fromBinary | ||
deserialize: (buf, fmt) => (0, exports._DataFrame)(polars_internal_1.default.JsDataFrame.deserialize(buf, fmt)) | ||
}); |
@@ -7,2 +7,3 @@ import * as series from "./series/series"; | ||
import * as cfg from "./cfg"; | ||
import * as ldf from "./lazy/dataframe"; | ||
import { funcs as lazy, Expr as lazyExpr, GroupBy as lazyGroupBy, when as _when } from "./lazy"; | ||
@@ -12,2 +13,3 @@ declare namespace pl { | ||
export import DataFrame = df.DataFrame; | ||
export import LazyDataFrame = ldf.LazyDataFrame; | ||
export import Series = series.Series; | ||
@@ -72,2 +74,3 @@ type LazyGroupBy = lazyGroupBy; | ||
export import select = lazy.select; | ||
export import struct = lazy.struct; | ||
export import spearmanRankCorr = lazy.spearmanRankCorr; | ||
@@ -74,0 +77,0 @@ export import tail = lazy.tail; |
@@ -30,2 +30,3 @@ "use strict"; | ||
const cfg = __importStar(require("./cfg")); | ||
const ldf = __importStar(require("./lazy/dataframe")); | ||
const polars_internal_1 = __importDefault(require("./internals/polars_internal")); | ||
@@ -37,2 +38,3 @@ const lazy_1 = require("./lazy"); | ||
pl.DataFrame = df.DataFrame; | ||
pl.LazyDataFrame = ldf.LazyDataFrame; | ||
pl.Series = series.Series; | ||
@@ -95,2 +97,3 @@ pl.Config = cfg.Config; | ||
pl.select = lazy_1.funcs.select; | ||
pl.struct = lazy_1.funcs.struct; | ||
pl.spearmanRankCorr = lazy_1.funcs.spearmanRankCorr; | ||
@@ -97,0 +100,0 @@ pl.tail = lazy_1.funcs.tail; |
@@ -5,2 +5,3 @@ import { DataFrame } from "../dataframe"; | ||
import { LazyGroupBy } from "./groupby"; | ||
import { Deserialize, Serialize } from "../shared_traits"; | ||
declare type LazyJoinOptions = { | ||
@@ -23,3 +24,3 @@ how?: "left" | "inner" | "outer" | "cross"; | ||
*/ | ||
export interface LazyDataFrame { | ||
export interface LazyDataFrame extends Serialize { | ||
/** @ignore */ | ||
@@ -263,2 +264,6 @@ _ldf: any; | ||
/** | ||
* compatibility with `JSON.stringify` | ||
*/ | ||
toJSON(): String; | ||
/** | ||
* Drop duplicate rows from this DataFrame. | ||
@@ -300,2 +305,5 @@ * Note that this fails if there is a column of type `List` in the DataFrame. | ||
export declare const _LazyDataFrame: (_ldf: any) => LazyDataFrame; | ||
export interface LazyDataFrameConstructor extends Deserialize<LazyDataFrame> { | ||
} | ||
export declare const LazyDataFrame: LazyDataFrameConstructor; | ||
export {}; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._LazyDataFrame = void 0; | ||
exports.LazyDataFrame = exports._LazyDataFrame = void 0; | ||
const dataframe_1 = require("../dataframe"); | ||
const expr_1 = require("./expr"); | ||
const polars_internal_1 = __importDefault(require("../internals/polars_internal")); | ||
const utils_1 = require("../utils"); | ||
@@ -229,2 +233,12 @@ const groupby_1 = require("./groupby"); | ||
}, | ||
toJSON(...args) { | ||
// this is passed by `JSON.stringify` when calling `toJSON()` | ||
if (args[0] === "") { | ||
return JSON.parse(_ldf.serialize("json").toString()); | ||
} | ||
return _ldf.serialize("json").toString(); | ||
}, | ||
serialize(format) { | ||
return _ldf.serialize(format); | ||
}, | ||
withColumn(expr) { | ||
@@ -246,1 +260,4 @@ return (0, exports._LazyDataFrame)(_ldf.withColumn(expr._expr)); | ||
exports._LazyDataFrame = _LazyDataFrame; | ||
exports.LazyDataFrame = Object.assign(exports._LazyDataFrame, { | ||
deserialize: (buf, fmt) => (0, exports._LazyDataFrame)(polars_internal_1.default.JsLazyFrame.deserialize(buf, fmt)) | ||
}); |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { DataType } from "../datatypes"; | ||
@@ -6,4 +5,4 @@ import { ExprOrString, FillNullStrategy, RankMethod, INSPECT_SYMBOL } from "../utils"; | ||
import * as expr from "./expr/"; | ||
import { Arithmetic, Comparison, Cumulative, Rolling, Round, Sample } from "../shared_traits"; | ||
export interface Expr extends Rolling<Expr>, Arithmetic<Expr>, Comparison<Expr>, Cumulative<Expr>, Sample<Expr>, Round<Expr> { | ||
import { Arithmetic, Comparison, Cumulative, Deserialize, Rolling, Round, Sample, Serialize } from "../shared_traits"; | ||
export interface Expr extends Rolling<Expr>, Arithmetic<Expr>, Comparison<Expr>, Cumulative<Expr>, Sample<Expr>, Round<Expr>, Serialize { | ||
/** @ignore */ | ||
@@ -17,8 +16,5 @@ _expr: any; | ||
[INSPECT_SYMBOL](): string; | ||
/** serializes the Expr to a [bincode buffer](https://docs.rs/bincode/latest/bincode/index.html) | ||
* @example | ||
* pl.Expr.fromBinary(expr.toBinary()) | ||
*/ | ||
toBinary(): Buffer; | ||
toString(): string; | ||
/** compat with `JSON.stringify` */ | ||
toJSON(): string; | ||
/** Take absolute values */ | ||
@@ -566,8 +562,4 @@ abs(): Expr; | ||
export declare const _Expr: (_expr: any) => Expr; | ||
export interface ExprConstructor { | ||
export interface ExprConstructor extends Deserialize<Expr> { | ||
isExpr(arg: any): arg is Expr; | ||
/** | ||
* @param binary used to serialize/deserialize expr. This will only work with the output from expr.toBinary(). | ||
*/ | ||
fromBinary(binary: Buffer): Expr; | ||
} | ||
@@ -574,0 +566,0 @@ export declare const Expr: ExprConstructor; |
@@ -37,3 +37,2 @@ "use strict"; | ||
}; | ||
const wrapNullArgs = (method) => () => wrap(method); | ||
const wrapExprArg = (method, lit = false) => (other) => { | ||
@@ -43,3 +42,2 @@ const expr = (0, exports.exprToLitOrExpr)(other, lit).inner(); | ||
}; | ||
const wrapUnaryWithDefault = (method, key, otherwise) => (val = otherwise) => wrap(method, { [key]: val?.[key] ?? val }); | ||
const rolling = (method) => (opts, weights, minPeriods, center) => { | ||
@@ -66,4 +64,4 @@ const windowSize = opts?.["windowSize"] ?? (typeof opts === "number" ? opts : null); | ||
}, | ||
toBinary() { | ||
return null; | ||
serialize(format) { | ||
return _expr.serialize(format); | ||
}, | ||
@@ -73,2 +71,9 @@ toString() { | ||
}, | ||
toJSON(...args) { | ||
// this is passed by `JSON.stringify` when calling `toJSON()` | ||
if (args[0] === "") { | ||
return _expr.toJs(); | ||
} | ||
return _expr.serialize("json").toString(); | ||
}, | ||
get str() { | ||
@@ -500,7 +505,6 @@ return expr.StringFunctions(_expr); | ||
}; | ||
const fromBinary = (buf) => { | ||
return null; | ||
// return _Expr(pli.JsExpr.from_bincode(buf)); | ||
const deserialize = (buf, format) => { | ||
return (0, exports._Expr)(polars_internal_1.default.JsExpr.deserialize(buf, format)); | ||
}; | ||
exports.Expr = Object.assign(exports._Expr, { isExpr, fromBinary }); | ||
exports.Expr = Object.assign(exports._Expr, { isExpr, deserialize }); | ||
/** @ignore */ | ||
@@ -507,0 +511,0 @@ const exprToLitOrExpr = (expr, stringToLit = true) => { |
@@ -127,2 +127,4 @@ import { Expr } from "./expr"; | ||
export declare function arange(low: any, high?: any, step?: number, eager?: false): Expr; | ||
/** Alias for `pl.col("*")` */ | ||
export declare function all(): Expr; | ||
/** | ||
@@ -235,1 +237,57 @@ * __Find the indexes that would sort the columns.__ | ||
export declare function list(column: ExprOrString): Expr; | ||
/** | ||
Collect several columns into a Series of dtype Struct | ||
Parameters | ||
---------- | ||
@param exprs | ||
Columns/Expressions to collect into a Struct | ||
@param eager | ||
Evaluate immediately | ||
Examples | ||
-------- | ||
``` | ||
>>> pl.DataFrame( | ||
... { | ||
... "int": [1, 2], | ||
... "str": ["a", "b"], | ||
... "bool": [True, None], | ||
... "list": [[1, 2], [3]], | ||
... } | ||
... ).select([pl.struct(pl.all()).alias("my_struct")]) | ||
shape: (2, 1) | ||
┌───────────────────────┐ | ||
│ my_struct │ | ||
│ --- │ | ||
│ struct{int, ... list} │ | ||
╞═══════════════════════╡ | ||
│ {1,"a",true,[1, 2]} │ | ||
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
│ {2,"b",null,[3]} │ | ||
└───────────────────────┘ | ||
// Only collect specific columns as a struct: | ||
>>> df = pl.DataFrame({ | ||
... "a": [1, 2, 3, 4], | ||
... "b": ["one", "two", "three", "four"], | ||
... "c": [9, 8, 7, 6] | ||
... }) | ||
>>> df.withColumn(pl.struct(pl.col(["a", "b"])).alias("a_and_b")) | ||
shape: (4, 4) | ||
┌─────┬───────┬─────┬───────────────────────────────┐ | ||
│ a ┆ b ┆ c ┆ a_and_b │ | ||
│ --- ┆ --- ┆ --- ┆ --- │ | ||
│ i64 ┆ str ┆ i64 ┆ struct[2]{'a': i64, 'b': str} │ | ||
╞═════╪═══════╪═════╪═══════════════════════════════╡ | ||
│ 1 ┆ one ┆ 9 ┆ {1,"one"} │ | ||
├╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
│ 2 ┆ two ┆ 8 ┆ {2,"two"} │ | ||
├╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
│ 3 ┆ three ┆ 7 ┆ {3,"three"} │ | ||
├╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
│ 4 ┆ four ┆ 6 ┆ {4,"four"} │ | ||
└─────┴───────┴─────┴───────────────────────────────┘ | ||
``` | ||
*/ | ||
export declare function struct(exprs: Series[]): Series; | ||
export declare function struct(exprs: ExprOrString | ExprOrString[]): Expr; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.list = exports.tail = exports.spearmanRankCorr = exports.select = exports.quantile = exports.pearsonCorr = exports.nUnique = exports.median = exports.mean = exports.last = exports.head = exports.groups = exports.format = exports.first = exports.exclude = exports.cov = exports.count = exports.concatString = exports.concatList = exports.avg = exports.argSortBy = exports.arange = exports.lit = exports.cols = exports.col = void 0; | ||
exports.struct = exports.list = exports.tail = exports.spearmanRankCorr = exports.select = exports.quantile = exports.pearsonCorr = exports.nUnique = exports.median = exports.mean = exports.last = exports.head = exports.groups = exports.format = exports.first = exports.exclude = exports.cov = exports.count = exports.concatString = exports.concatList = exports.avg = exports.argSortBy = exports.all = exports.arange = exports.lit = exports.cols = exports.col = void 0; | ||
const expr_1 = require("./expr"); | ||
@@ -147,2 +147,7 @@ const series_1 = require("../series/series"); | ||
exports.arange = arange; | ||
/** Alias for `pl.col("*")` */ | ||
function all() { | ||
return col("*"); | ||
} | ||
exports.all = all; | ||
/** | ||
@@ -356,2 +361,11 @@ * __Find the indexes that would sort the columns.__ | ||
exports.list = list; | ||
function struct(exprs) { | ||
exprs = Array.isArray(exprs) ? exprs : [exprs]; | ||
if (series_1.Series.isSeries(exprs[0])) { | ||
return select((0, expr_1._Expr)(polars_internal_1.default.asStruct(exprs.map(e => polars_internal_1.default.lit(e.inner()))))).toSeries(); | ||
} | ||
exprs = (0, utils_1.selectionToExprList)(exprs); | ||
return (0, expr_1._Expr)(polars_internal_1.default.asStruct(exprs)); | ||
} | ||
exports.struct = struct; | ||
// // export function collect_all() {} | ||
@@ -358,0 +372,0 @@ // // export function all() {} // fold |
@@ -1,243 +0,2 @@ | ||
export const version: any; | ||
export const toggleStringCache: any; | ||
export const JsDataFrame: any; | ||
export const readCsv: any; | ||
export const readJson: any; | ||
export const readParquet: any; | ||
export const readIpc: any; | ||
export const readAvro: any; | ||
export const fromRows: any; | ||
export const DataType: any; | ||
export const horizontalConcat: any; | ||
export const JsLazyGroupBy: any; | ||
export const JsLazyFrame: any; | ||
export const scanCsv: any; | ||
export const scanParquet: any; | ||
export const scanIpc: any; | ||
export const JsExpr: any; | ||
export const When: any; | ||
export const WhenThen: any; | ||
export const WhenThenThen: any; | ||
export const when: any; | ||
export const col: any; | ||
export const count: any; | ||
export const first: any; | ||
export const last: any; | ||
export const cols: any; | ||
export const dtypeCols: any; | ||
export const arange: any; | ||
export const pearsonCorr: any; | ||
export const spearmanRankCorr: any; | ||
export const cov: any; | ||
export const argsortBy: any; | ||
export const lit: any; | ||
export const range: any; | ||
export const concatLst: any; | ||
export const concatStr: any; | ||
export const JsSeries: any; | ||
export const seriesSetAtIdxStr: any; | ||
export const seriesSetAtIdxF64: any; | ||
export const seriesSetAtIdxF32: any; | ||
export const seriesSetAtIdxU8: any; | ||
export const seriesSetAtIdxU16: any; | ||
export const seriesSetAtIdxU32: any; | ||
export const seriesSetAtIdxU64: any; | ||
export const seriesSetAtIdxI8: any; | ||
export const seriesSetAtIdxI16: any; | ||
export const seriesSetAtIdxI32: any; | ||
export const seriesSetAtIdxI64: any; | ||
export const seriesSetWithMaskStr: any; | ||
export const seriesSetWithMaskF64: any; | ||
export const seriesSetWithMaskF32: any; | ||
export const seriesSetWithMaskU8: any; | ||
export const seriesSetWithMaskU16: any; | ||
export const seriesSetWithMaskU32: any; | ||
export const seriesSetWithMaskU64: any; | ||
export const seriesSetWithMaskI8: any; | ||
export const seriesSetWithMaskI16: any; | ||
export const seriesSetWithMaskI32: any; | ||
export const seriesSetWithMaskI64: any; | ||
export const seriesGetF32: any; | ||
export const seriesGetF64: any; | ||
export const seriesGetU8: any; | ||
export const seriesGetU16: any; | ||
export const seriesGetU32: any; | ||
export const seriesGetU64: any; | ||
export const seriesGetI8: any; | ||
export const seriesGetI16: any; | ||
export const seriesGetI32: any; | ||
export const seriesGetI64: any; | ||
export const seriesGetDate: any; | ||
export const seriesGetDatetime: any; | ||
export const seriesGetDuration: any; | ||
export const seriesGetStr: any; | ||
export const seriesAddU8: any; | ||
export const seriesAddU16: any; | ||
export const seriesAddU32: any; | ||
export const seriesAddU64: any; | ||
export const seriesAddI8: any; | ||
export const seriesAddI16: any; | ||
export const seriesAddI32: any; | ||
export const seriesAddI64: any; | ||
export const seriesAddDatetime: any; | ||
export const seriesAddDuration: any; | ||
export const seriesAddF32: any; | ||
export const seriesAddF64: any; | ||
export const seriesSubU8: any; | ||
export const seriesSubU16: any; | ||
export const seriesSubU32: any; | ||
export const seriesSubU64: any; | ||
export const seriesSubI8: any; | ||
export const seriesSubI16: any; | ||
export const seriesSubI32: any; | ||
export const seriesSubI64: any; | ||
export const seriesSubDatetime: any; | ||
export const seriesSubDuration: any; | ||
export const seriesSubF32: any; | ||
export const seriesSubF64: any; | ||
export const seriesDivU8: any; | ||
export const seriesDivU16: any; | ||
export const seriesDivU32: any; | ||
export const seriesDivU64: any; | ||
export const seriesDivI8: any; | ||
export const seriesDivI16: any; | ||
export const seriesDivI32: any; | ||
export const seriesDivI64: any; | ||
export const seriesDivF32: any; | ||
export const seriesDivF64: any; | ||
export const seriesMulU8: any; | ||
export const seriesMulU16: any; | ||
export const seriesMulU32: any; | ||
export const seriesMulU64: any; | ||
export const seriesMulI8: any; | ||
export const seriesMulI16: any; | ||
export const seriesMulI32: any; | ||
export const seriesMulI64: any; | ||
export const seriesMulF32: any; | ||
export const seriesMulF64: any; | ||
export const seriesRemU8: any; | ||
export const seriesRemU16: any; | ||
export const seriesRemU32: any; | ||
export const seriesRemU64: any; | ||
export const seriesRemI8: any; | ||
export const seriesRemI16: any; | ||
export const seriesRemI32: any; | ||
export const seriesRemI64: any; | ||
export const seriesRemF32: any; | ||
export const seriesRemF64: any; | ||
export const seriesAddU8Rhs: any; | ||
export const seriesAddU16Rhs: any; | ||
export const seriesAddU32Rhs: any; | ||
export const seriesAddU64Rhs: any; | ||
export const seriesAddI8Rhs: any; | ||
export const seriesAddI16Rhs: any; | ||
export const seriesAddI32Rhs: any; | ||
export const seriesAddI64Rhs: any; | ||
export const seriesAddF32Rhs: any; | ||
export const seriesAddF64Rhs: any; | ||
export const seriesSubU8Rhs: any; | ||
export const seriesSubU16Rhs: any; | ||
export const seriesSubU32Rhs: any; | ||
export const seriesSubU64Rhs: any; | ||
export const seriesSubI8Rhs: any; | ||
export const seriesSubI16Rhs: any; | ||
export const seriesSubI32Rhs: any; | ||
export const seriesSubI64Rhs: any; | ||
export const seriesSubF32Rhs: any; | ||
export const seriesSubF64Rhs: any; | ||
export const seriesDivU8Rhs: any; | ||
export const seriesDivU16Rhs: any; | ||
export const seriesDivU32Rhs: any; | ||
export const seriesDivU64Rhs: any; | ||
export const seriesDivI8Rhs: any; | ||
export const seriesDivI16Rhs: any; | ||
export const seriesDivI32Rhs: any; | ||
export const seriesDivI64Rhs: any; | ||
export const seriesDivF32Rhs: any; | ||
export const seriesDivF64Rhs: any; | ||
export const seriesMulU8Rhs: any; | ||
export const seriesMulU16Rhs: any; | ||
export const seriesMulU32Rhs: any; | ||
export const seriesMulU64Rhs: any; | ||
export const seriesMulI8Rhs: any; | ||
export const seriesMulI16Rhs: any; | ||
export const seriesMulI32Rhs: any; | ||
export const seriesMulI64Rhs: any; | ||
export const seriesMulF32Rhs: any; | ||
export const seriesMulF64Rhs: any; | ||
export const seriesRemU8Rhs: any; | ||
export const seriesRemU16Rhs: any; | ||
export const seriesRemU32Rhs: any; | ||
export const seriesRemU64Rhs: any; | ||
export const seriesRemI8Rhs: any; | ||
export const seriesRemI16Rhs: any; | ||
export const seriesRemI32Rhs: any; | ||
export const seriesRemI64Rhs: any; | ||
export const seriesRemF32Rhs: any; | ||
export const seriesRemF64Rhs: any; | ||
export const seriesEqU8: any; | ||
export const seriesEqU16: any; | ||
export const seriesEqU32: any; | ||
export const seriesEqU64: any; | ||
export const seriesEqI8: any; | ||
export const seriesEqI16: any; | ||
export const seriesEqI32: any; | ||
export const seriesEqI64: any; | ||
export const seriesEqF32: any; | ||
export const seriesEqF64: any; | ||
export const seriesEqStr: any; | ||
export const seriesNeqU8: any; | ||
export const seriesNeqU16: any; | ||
export const seriesNeqU32: any; | ||
export const seriesNeqU64: any; | ||
export const seriesNeqI8: any; | ||
export const seriesNeqI16: any; | ||
export const seriesNeqI32: any; | ||
export const seriesNeqI64: any; | ||
export const seriesNeqF32: any; | ||
export const seriesNeqF64: any; | ||
export const seriesNeqStr: any; | ||
export const seriesGtU8: any; | ||
export const seriesGtU16: any; | ||
export const seriesGtU32: any; | ||
export const seriesGtU64: any; | ||
export const seriesGtI8: any; | ||
export const seriesGtI16: any; | ||
export const seriesGtI32: any; | ||
export const seriesGtI64: any; | ||
export const seriesGtF32: any; | ||
export const seriesGtF64: any; | ||
export const seriesGtStr: any; | ||
export const seriesGtEqU8: any; | ||
export const seriesGtEqU16: any; | ||
export const seriesGtEqU32: any; | ||
export const seriesGtEqU64: any; | ||
export const seriesGtEqI8: any; | ||
export const seriesGtEqI16: any; | ||
export const seriesGtEqI32: any; | ||
export const seriesGtEqI64: any; | ||
export const seriesGtEqF32: any; | ||
export const seriesGtEqF64: any; | ||
export const seriesGtEqStr: any; | ||
export const seriesLtU8: any; | ||
export const seriesLtU16: any; | ||
export const seriesLtU32: any; | ||
export const seriesLtU64: any; | ||
export const seriesLtI8: any; | ||
export const seriesLtI16: any; | ||
export const seriesLtI32: any; | ||
export const seriesLtI64: any; | ||
export const seriesLtF32: any; | ||
export const seriesLtF64: any; | ||
export const seriesLtStr: any; | ||
export const seriesLtEqU8: any; | ||
export const seriesLtEqU16: any; | ||
export const seriesLtEqU32: any; | ||
export const seriesLtEqU64: any; | ||
export const seriesLtEqI8: any; | ||
export const seriesLtEqI16: any; | ||
export const seriesLtEqI32: any; | ||
export const seriesLtEqI64: any; | ||
export const seriesLtEqF32: any; | ||
export const seriesLtEqF64: any; | ||
export const seriesLtEqStr: any; | ||
export = nativeBinding; | ||
declare let nativeBinding: any; |
@@ -246,245 +246,2 @@ "use strict"; | ||
} | ||
const { version, toggleStringCache, JsDataFrame, readCsv, readJson, readParquet, readIpc, readAvro, fromRows, DataType, horizontalConcat, JsLazyGroupBy, JsLazyFrame, scanCsv, scanParquet, scanIpc, JsExpr, When, WhenThen, WhenThenThen, when, col, count, first, last, cols, dtypeCols, arange, pearsonCorr, spearmanRankCorr, cov, argsortBy, lit, range, concatLst, concatStr, JsSeries, seriesSetAtIdxStr, seriesSetAtIdxF64, seriesSetAtIdxF32, seriesSetAtIdxU8, seriesSetAtIdxU16, seriesSetAtIdxU32, seriesSetAtIdxU64, seriesSetAtIdxI8, seriesSetAtIdxI16, seriesSetAtIdxI32, seriesSetAtIdxI64, seriesSetWithMaskStr, seriesSetWithMaskF64, seriesSetWithMaskF32, seriesSetWithMaskU8, seriesSetWithMaskU16, seriesSetWithMaskU32, seriesSetWithMaskU64, seriesSetWithMaskI8, seriesSetWithMaskI16, seriesSetWithMaskI32, seriesSetWithMaskI64, seriesGetF32, seriesGetF64, seriesGetU8, seriesGetU16, seriesGetU32, seriesGetU64, seriesGetI8, seriesGetI16, seriesGetI32, seriesGetI64, seriesGetDate, seriesGetDatetime, seriesGetDuration, seriesGetStr, seriesAddU8, seriesAddU16, seriesAddU32, seriesAddU64, seriesAddI8, seriesAddI16, seriesAddI32, seriesAddI64, seriesAddDatetime, seriesAddDuration, seriesAddF32, seriesAddF64, seriesSubU8, seriesSubU16, seriesSubU32, seriesSubU64, seriesSubI8, seriesSubI16, seriesSubI32, seriesSubI64, seriesSubDatetime, seriesSubDuration, seriesSubF32, seriesSubF64, seriesDivU8, seriesDivU16, seriesDivU32, seriesDivU64, seriesDivI8, seriesDivI16, seriesDivI32, seriesDivI64, seriesDivF32, seriesDivF64, seriesMulU8, seriesMulU16, seriesMulU32, seriesMulU64, seriesMulI8, seriesMulI16, seriesMulI32, seriesMulI64, seriesMulF32, seriesMulF64, seriesRemU8, seriesRemU16, seriesRemU32, seriesRemU64, seriesRemI8, seriesRemI16, seriesRemI32, seriesRemI64, seriesRemF32, seriesRemF64, seriesAddU8Rhs, seriesAddU16Rhs, seriesAddU32Rhs, seriesAddU64Rhs, seriesAddI8Rhs, seriesAddI16Rhs, seriesAddI32Rhs, seriesAddI64Rhs, seriesAddF32Rhs, seriesAddF64Rhs, seriesSubU8Rhs, seriesSubU16Rhs, seriesSubU32Rhs, seriesSubU64Rhs, seriesSubI8Rhs, seriesSubI16Rhs, seriesSubI32Rhs, seriesSubI64Rhs, seriesSubF32Rhs, seriesSubF64Rhs, seriesDivU8Rhs, seriesDivU16Rhs, seriesDivU32Rhs, seriesDivU64Rhs, seriesDivI8Rhs, seriesDivI16Rhs, seriesDivI32Rhs, seriesDivI64Rhs, seriesDivF32Rhs, seriesDivF64Rhs, seriesMulU8Rhs, seriesMulU16Rhs, seriesMulU32Rhs, seriesMulU64Rhs, seriesMulI8Rhs, seriesMulI16Rhs, seriesMulI32Rhs, seriesMulI64Rhs, seriesMulF32Rhs, seriesMulF64Rhs, seriesRemU8Rhs, seriesRemU16Rhs, seriesRemU32Rhs, seriesRemU64Rhs, seriesRemI8Rhs, seriesRemI16Rhs, seriesRemI32Rhs, seriesRemI64Rhs, seriesRemF32Rhs, seriesRemF64Rhs, seriesEqU8, seriesEqU16, seriesEqU32, seriesEqU64, seriesEqI8, seriesEqI16, seriesEqI32, seriesEqI64, seriesEqF32, seriesEqF64, seriesEqStr, seriesNeqU8, seriesNeqU16, seriesNeqU32, seriesNeqU64, seriesNeqI8, seriesNeqI16, seriesNeqI32, seriesNeqI64, seriesNeqF32, seriesNeqF64, seriesNeqStr, seriesGtU8, seriesGtU16, seriesGtU32, seriesGtU64, seriesGtI8, seriesGtI16, seriesGtI32, seriesGtI64, seriesGtF32, seriesGtF64, seriesGtStr, seriesGtEqU8, seriesGtEqU16, seriesGtEqU32, seriesGtEqU64, seriesGtEqI8, seriesGtEqI16, seriesGtEqI32, seriesGtEqI64, seriesGtEqF32, seriesGtEqF64, seriesGtEqStr, seriesLtU8, seriesLtU16, seriesLtU32, seriesLtU64, seriesLtI8, seriesLtI16, seriesLtI32, seriesLtI64, seriesLtF32, seriesLtF64, seriesLtStr, seriesLtEqU8, seriesLtEqU16, seriesLtEqU32, seriesLtEqU64, seriesLtEqI8, seriesLtEqI16, seriesLtEqI32, seriesLtEqI64, seriesLtEqF32, seriesLtEqF64, seriesLtEqStr } = nativeBinding; | ||
module.exports.version = version; | ||
module.exports.toggleStringCache = toggleStringCache; | ||
module.exports.JsDataFrame = JsDataFrame; | ||
module.exports.readCsv = readCsv; | ||
module.exports.readJson = readJson; | ||
module.exports.readParquet = readParquet; | ||
module.exports.readIpc = readIpc; | ||
module.exports.readAvro = readAvro; | ||
module.exports.fromRows = fromRows; | ||
module.exports.DataType = DataType; | ||
module.exports.horizontalConcat = horizontalConcat; | ||
module.exports.JsLazyGroupBy = JsLazyGroupBy; | ||
module.exports.JsLazyFrame = JsLazyFrame; | ||
module.exports.scanCsv = scanCsv; | ||
module.exports.scanParquet = scanParquet; | ||
module.exports.scanIpc = scanIpc; | ||
module.exports.JsExpr = JsExpr; | ||
module.exports.When = When; | ||
module.exports.WhenThen = WhenThen; | ||
module.exports.WhenThenThen = WhenThenThen; | ||
module.exports.when = when; | ||
module.exports.col = col; | ||
module.exports.count = count; | ||
module.exports.first = first; | ||
module.exports.last = last; | ||
module.exports.cols = cols; | ||
module.exports.dtypeCols = dtypeCols; | ||
module.exports.arange = arange; | ||
module.exports.pearsonCorr = pearsonCorr; | ||
module.exports.spearmanRankCorr = spearmanRankCorr; | ||
module.exports.cov = cov; | ||
module.exports.argsortBy = argsortBy; | ||
module.exports.lit = lit; | ||
module.exports.range = range; | ||
module.exports.concatLst = concatLst; | ||
module.exports.concatStr = concatStr; | ||
module.exports.JsSeries = JsSeries; | ||
module.exports.seriesSetAtIdxStr = seriesSetAtIdxStr; | ||
module.exports.seriesSetAtIdxF64 = seriesSetAtIdxF64; | ||
module.exports.seriesSetAtIdxF32 = seriesSetAtIdxF32; | ||
module.exports.seriesSetAtIdxU8 = seriesSetAtIdxU8; | ||
module.exports.seriesSetAtIdxU16 = seriesSetAtIdxU16; | ||
module.exports.seriesSetAtIdxU32 = seriesSetAtIdxU32; | ||
module.exports.seriesSetAtIdxU64 = seriesSetAtIdxU64; | ||
module.exports.seriesSetAtIdxI8 = seriesSetAtIdxI8; | ||
module.exports.seriesSetAtIdxI16 = seriesSetAtIdxI16; | ||
module.exports.seriesSetAtIdxI32 = seriesSetAtIdxI32; | ||
module.exports.seriesSetAtIdxI64 = seriesSetAtIdxI64; | ||
module.exports.seriesSetWithMaskStr = seriesSetWithMaskStr; | ||
module.exports.seriesSetWithMaskF64 = seriesSetWithMaskF64; | ||
module.exports.seriesSetWithMaskF32 = seriesSetWithMaskF32; | ||
module.exports.seriesSetWithMaskU8 = seriesSetWithMaskU8; | ||
module.exports.seriesSetWithMaskU16 = seriesSetWithMaskU16; | ||
module.exports.seriesSetWithMaskU32 = seriesSetWithMaskU32; | ||
module.exports.seriesSetWithMaskU64 = seriesSetWithMaskU64; | ||
module.exports.seriesSetWithMaskI8 = seriesSetWithMaskI8; | ||
module.exports.seriesSetWithMaskI16 = seriesSetWithMaskI16; | ||
module.exports.seriesSetWithMaskI32 = seriesSetWithMaskI32; | ||
module.exports.seriesSetWithMaskI64 = seriesSetWithMaskI64; | ||
module.exports.seriesGetF32 = seriesGetF32; | ||
module.exports.seriesGetF64 = seriesGetF64; | ||
module.exports.seriesGetU8 = seriesGetU8; | ||
module.exports.seriesGetU16 = seriesGetU16; | ||
module.exports.seriesGetU32 = seriesGetU32; | ||
module.exports.seriesGetU64 = seriesGetU64; | ||
module.exports.seriesGetI8 = seriesGetI8; | ||
module.exports.seriesGetI16 = seriesGetI16; | ||
module.exports.seriesGetI32 = seriesGetI32; | ||
module.exports.seriesGetI64 = seriesGetI64; | ||
module.exports.seriesGetDate = seriesGetDate; | ||
module.exports.seriesGetDatetime = seriesGetDatetime; | ||
module.exports.seriesGetDuration = seriesGetDuration; | ||
module.exports.seriesGetStr = seriesGetStr; | ||
module.exports.seriesAddU8 = seriesAddU8; | ||
module.exports.seriesAddU16 = seriesAddU16; | ||
module.exports.seriesAddU32 = seriesAddU32; | ||
module.exports.seriesAddU64 = seriesAddU64; | ||
module.exports.seriesAddI8 = seriesAddI8; | ||
module.exports.seriesAddI16 = seriesAddI16; | ||
module.exports.seriesAddI32 = seriesAddI32; | ||
module.exports.seriesAddI64 = seriesAddI64; | ||
module.exports.seriesAddDatetime = seriesAddDatetime; | ||
module.exports.seriesAddDuration = seriesAddDuration; | ||
module.exports.seriesAddF32 = seriesAddF32; | ||
module.exports.seriesAddF64 = seriesAddF64; | ||
module.exports.seriesSubU8 = seriesSubU8; | ||
module.exports.seriesSubU16 = seriesSubU16; | ||
module.exports.seriesSubU32 = seriesSubU32; | ||
module.exports.seriesSubU64 = seriesSubU64; | ||
module.exports.seriesSubI8 = seriesSubI8; | ||
module.exports.seriesSubI16 = seriesSubI16; | ||
module.exports.seriesSubI32 = seriesSubI32; | ||
module.exports.seriesSubI64 = seriesSubI64; | ||
module.exports.seriesSubDatetime = seriesSubDatetime; | ||
module.exports.seriesSubDuration = seriesSubDuration; | ||
module.exports.seriesSubF32 = seriesSubF32; | ||
module.exports.seriesSubF64 = seriesSubF64; | ||
module.exports.seriesDivU8 = seriesDivU8; | ||
module.exports.seriesDivU16 = seriesDivU16; | ||
module.exports.seriesDivU32 = seriesDivU32; | ||
module.exports.seriesDivU64 = seriesDivU64; | ||
module.exports.seriesDivI8 = seriesDivI8; | ||
module.exports.seriesDivI16 = seriesDivI16; | ||
module.exports.seriesDivI32 = seriesDivI32; | ||
module.exports.seriesDivI64 = seriesDivI64; | ||
module.exports.seriesDivF32 = seriesDivF32; | ||
module.exports.seriesDivF64 = seriesDivF64; | ||
module.exports.seriesMulU8 = seriesMulU8; | ||
module.exports.seriesMulU16 = seriesMulU16; | ||
module.exports.seriesMulU32 = seriesMulU32; | ||
module.exports.seriesMulU64 = seriesMulU64; | ||
module.exports.seriesMulI8 = seriesMulI8; | ||
module.exports.seriesMulI16 = seriesMulI16; | ||
module.exports.seriesMulI32 = seriesMulI32; | ||
module.exports.seriesMulI64 = seriesMulI64; | ||
module.exports.seriesMulF32 = seriesMulF32; | ||
module.exports.seriesMulF64 = seriesMulF64; | ||
module.exports.seriesRemU8 = seriesRemU8; | ||
module.exports.seriesRemU16 = seriesRemU16; | ||
module.exports.seriesRemU32 = seriesRemU32; | ||
module.exports.seriesRemU64 = seriesRemU64; | ||
module.exports.seriesRemI8 = seriesRemI8; | ||
module.exports.seriesRemI16 = seriesRemI16; | ||
module.exports.seriesRemI32 = seriesRemI32; | ||
module.exports.seriesRemI64 = seriesRemI64; | ||
module.exports.seriesRemF32 = seriesRemF32; | ||
module.exports.seriesRemF64 = seriesRemF64; | ||
module.exports.seriesAddU8Rhs = seriesAddU8Rhs; | ||
module.exports.seriesAddU16Rhs = seriesAddU16Rhs; | ||
module.exports.seriesAddU32Rhs = seriesAddU32Rhs; | ||
module.exports.seriesAddU64Rhs = seriesAddU64Rhs; | ||
module.exports.seriesAddI8Rhs = seriesAddI8Rhs; | ||
module.exports.seriesAddI16Rhs = seriesAddI16Rhs; | ||
module.exports.seriesAddI32Rhs = seriesAddI32Rhs; | ||
module.exports.seriesAddI64Rhs = seriesAddI64Rhs; | ||
module.exports.seriesAddF32Rhs = seriesAddF32Rhs; | ||
module.exports.seriesAddF64Rhs = seriesAddF64Rhs; | ||
module.exports.seriesSubU8Rhs = seriesSubU8Rhs; | ||
module.exports.seriesSubU16Rhs = seriesSubU16Rhs; | ||
module.exports.seriesSubU32Rhs = seriesSubU32Rhs; | ||
module.exports.seriesSubU64Rhs = seriesSubU64Rhs; | ||
module.exports.seriesSubI8Rhs = seriesSubI8Rhs; | ||
module.exports.seriesSubI16Rhs = seriesSubI16Rhs; | ||
module.exports.seriesSubI32Rhs = seriesSubI32Rhs; | ||
module.exports.seriesSubI64Rhs = seriesSubI64Rhs; | ||
module.exports.seriesSubF32Rhs = seriesSubF32Rhs; | ||
module.exports.seriesSubF64Rhs = seriesSubF64Rhs; | ||
module.exports.seriesDivU8Rhs = seriesDivU8Rhs; | ||
module.exports.seriesDivU16Rhs = seriesDivU16Rhs; | ||
module.exports.seriesDivU32Rhs = seriesDivU32Rhs; | ||
module.exports.seriesDivU64Rhs = seriesDivU64Rhs; | ||
module.exports.seriesDivI8Rhs = seriesDivI8Rhs; | ||
module.exports.seriesDivI16Rhs = seriesDivI16Rhs; | ||
module.exports.seriesDivI32Rhs = seriesDivI32Rhs; | ||
module.exports.seriesDivI64Rhs = seriesDivI64Rhs; | ||
module.exports.seriesDivF32Rhs = seriesDivF32Rhs; | ||
module.exports.seriesDivF64Rhs = seriesDivF64Rhs; | ||
module.exports.seriesMulU8Rhs = seriesMulU8Rhs; | ||
module.exports.seriesMulU16Rhs = seriesMulU16Rhs; | ||
module.exports.seriesMulU32Rhs = seriesMulU32Rhs; | ||
module.exports.seriesMulU64Rhs = seriesMulU64Rhs; | ||
module.exports.seriesMulI8Rhs = seriesMulI8Rhs; | ||
module.exports.seriesMulI16Rhs = seriesMulI16Rhs; | ||
module.exports.seriesMulI32Rhs = seriesMulI32Rhs; | ||
module.exports.seriesMulI64Rhs = seriesMulI64Rhs; | ||
module.exports.seriesMulF32Rhs = seriesMulF32Rhs; | ||
module.exports.seriesMulF64Rhs = seriesMulF64Rhs; | ||
module.exports.seriesRemU8Rhs = seriesRemU8Rhs; | ||
module.exports.seriesRemU16Rhs = seriesRemU16Rhs; | ||
module.exports.seriesRemU32Rhs = seriesRemU32Rhs; | ||
module.exports.seriesRemU64Rhs = seriesRemU64Rhs; | ||
module.exports.seriesRemI8Rhs = seriesRemI8Rhs; | ||
module.exports.seriesRemI16Rhs = seriesRemI16Rhs; | ||
module.exports.seriesRemI32Rhs = seriesRemI32Rhs; | ||
module.exports.seriesRemI64Rhs = seriesRemI64Rhs; | ||
module.exports.seriesRemF32Rhs = seriesRemF32Rhs; | ||
module.exports.seriesRemF64Rhs = seriesRemF64Rhs; | ||
module.exports.seriesEqU8 = seriesEqU8; | ||
module.exports.seriesEqU16 = seriesEqU16; | ||
module.exports.seriesEqU32 = seriesEqU32; | ||
module.exports.seriesEqU64 = seriesEqU64; | ||
module.exports.seriesEqI8 = seriesEqI8; | ||
module.exports.seriesEqI16 = seriesEqI16; | ||
module.exports.seriesEqI32 = seriesEqI32; | ||
module.exports.seriesEqI64 = seriesEqI64; | ||
module.exports.seriesEqF32 = seriesEqF32; | ||
module.exports.seriesEqF64 = seriesEqF64; | ||
module.exports.seriesEqStr = seriesEqStr; | ||
module.exports.seriesNeqU8 = seriesNeqU8; | ||
module.exports.seriesNeqU16 = seriesNeqU16; | ||
module.exports.seriesNeqU32 = seriesNeqU32; | ||
module.exports.seriesNeqU64 = seriesNeqU64; | ||
module.exports.seriesNeqI8 = seriesNeqI8; | ||
module.exports.seriesNeqI16 = seriesNeqI16; | ||
module.exports.seriesNeqI32 = seriesNeqI32; | ||
module.exports.seriesNeqI64 = seriesNeqI64; | ||
module.exports.seriesNeqF32 = seriesNeqF32; | ||
module.exports.seriesNeqF64 = seriesNeqF64; | ||
module.exports.seriesNeqStr = seriesNeqStr; | ||
module.exports.seriesGtU8 = seriesGtU8; | ||
module.exports.seriesGtU16 = seriesGtU16; | ||
module.exports.seriesGtU32 = seriesGtU32; | ||
module.exports.seriesGtU64 = seriesGtU64; | ||
module.exports.seriesGtI8 = seriesGtI8; | ||
module.exports.seriesGtI16 = seriesGtI16; | ||
module.exports.seriesGtI32 = seriesGtI32; | ||
module.exports.seriesGtI64 = seriesGtI64; | ||
module.exports.seriesGtF32 = seriesGtF32; | ||
module.exports.seriesGtF64 = seriesGtF64; | ||
module.exports.seriesGtStr = seriesGtStr; | ||
module.exports.seriesGtEqU8 = seriesGtEqU8; | ||
module.exports.seriesGtEqU16 = seriesGtEqU16; | ||
module.exports.seriesGtEqU32 = seriesGtEqU32; | ||
module.exports.seriesGtEqU64 = seriesGtEqU64; | ||
module.exports.seriesGtEqI8 = seriesGtEqI8; | ||
module.exports.seriesGtEqI16 = seriesGtEqI16; | ||
module.exports.seriesGtEqI32 = seriesGtEqI32; | ||
module.exports.seriesGtEqI64 = seriesGtEqI64; | ||
module.exports.seriesGtEqF32 = seriesGtEqF32; | ||
module.exports.seriesGtEqF64 = seriesGtEqF64; | ||
module.exports.seriesGtEqStr = seriesGtEqStr; | ||
module.exports.seriesLtU8 = seriesLtU8; | ||
module.exports.seriesLtU16 = seriesLtU16; | ||
module.exports.seriesLtU32 = seriesLtU32; | ||
module.exports.seriesLtU64 = seriesLtU64; | ||
module.exports.seriesLtI8 = seriesLtI8; | ||
module.exports.seriesLtI16 = seriesLtI16; | ||
module.exports.seriesLtI32 = seriesLtI32; | ||
module.exports.seriesLtI64 = seriesLtI64; | ||
module.exports.seriesLtF32 = seriesLtF32; | ||
module.exports.seriesLtF64 = seriesLtF64; | ||
module.exports.seriesLtStr = seriesLtStr; | ||
module.exports.seriesLtEqU8 = seriesLtEqU8; | ||
module.exports.seriesLtEqU16 = seriesLtEqU16; | ||
module.exports.seriesLtEqU32 = seriesLtEqU32; | ||
module.exports.seriesLtEqU64 = seriesLtEqU64; | ||
module.exports.seriesLtEqI8 = seriesLtEqI8; | ||
module.exports.seriesLtEqI16 = seriesLtEqI16; | ||
module.exports.seriesLtEqI32 = seriesLtEqI32; | ||
module.exports.seriesLtEqI64 = seriesLtEqI64; | ||
module.exports.seriesLtEqF32 = seriesLtEqF32; | ||
module.exports.seriesLtEqF64 = seriesLtEqF64; | ||
module.exports.seriesLtEqStr = seriesLtEqStr; | ||
module.exports = nativeBinding; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { DataType, Optional } from "../datatypes"; | ||
@@ -9,5 +8,5 @@ import { DataFrame } from "../dataframe"; | ||
import { RankMethod } from "../utils"; | ||
import { Arithmetic, Comparison, Cumulative, Rolling, Round, Sample } from "../shared_traits"; | ||
import { Arithmetic, Comparison, Cumulative, Deserialize, Rolling, Round, Sample, Serialize } from "../shared_traits"; | ||
declare const inspect: unique symbol; | ||
export interface Series extends ArrayLike<any>, Rolling<Series>, Arithmetic<Series>, Comparison<Series>, Cumulative<Series>, Round<Series>, Sample<Series> { | ||
export interface Series extends ArrayLike<any>, Rolling<Series>, Arithmetic<Series>, Comparison<Series>, Cumulative<Series>, Round<Series>, Sample<Series>, Serialize { | ||
inner(): any; | ||
@@ -985,7 +984,3 @@ name: string; | ||
toFrame(): DataFrame; | ||
/** serializes the Series to a [bincode buffer](https://docs.rs/bincode/latest/bincode/index.html) | ||
* @example | ||
* pl.Series.fromBinary(series.toBincode()) | ||
*/ | ||
toBinary(): Buffer; | ||
/** compat with `JSON.stringify */ | ||
toJSON(): string; | ||
@@ -1002,3 +997,3 @@ /** Returns an iterator over the values */ | ||
export declare function _Series(_s: any): Series; | ||
export interface SeriesConstructor { | ||
export interface SeriesConstructor extends Deserialize<Series> { | ||
(values: any): Series; | ||
@@ -1005,0 +1000,0 @@ (name: string, values: any[], dtype?: any): Series; |
@@ -67,2 +67,5 @@ "use strict"; | ||
}, | ||
serialize(format) { | ||
return _s.serialize(format); | ||
}, | ||
[Symbol.toStringTag]() { | ||
@@ -639,7 +642,11 @@ return "Series"; | ||
}, | ||
toJSON() { | ||
return _s.toJson().toString(); | ||
toJSON(...args) { | ||
// this is passed by `JSON.stringify` when calling `toJSON()` | ||
if (args[0] === "") { | ||
return _s.toJs(); | ||
} | ||
return _s.serialize("json").toString(); | ||
}, | ||
toObject() { | ||
return JSON.parse(_s.toJson().toString()); | ||
return _s.toJs(); | ||
}, | ||
@@ -711,3 +718,4 @@ unique(maintainOrder) { | ||
from, | ||
of | ||
of, | ||
deserialize: (buf, fmt) => _Series(polars_internal_1.default.JsSeries.deserialize(buf, fmt)) | ||
}); |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { Expr } from "./lazy/expr"; | ||
@@ -493,1 +494,19 @@ export declare type RollingOptions = { | ||
} | ||
export interface Serialize { | ||
/** | ||
* Serializes object to desired format via [serde](https://serde.rs/) | ||
* | ||
* @param format [json](https://github.com/serde-rs/json) | [bincode](https://github.com/bincode-org/bincode) | ||
* | ||
*/ | ||
serialize(format: "json" | "bincode"): Buffer; | ||
} | ||
export interface Deserialize<T> { | ||
/** | ||
* De-serializes buffer via [serde](https://serde.rs/) | ||
* @param buf buffer to deserialize | ||
* @param format [json](https://github.com/serde-rs/json) | [bincode](https://github.com/bincode-org/bincode) | ||
* | ||
*/ | ||
deserialize(buf: Buffer, format: "json" | "bincode"): T; | ||
} |
{ | ||
"name": "nodejs-polars", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"repository": "https://github.com/pola-rs/polars.git", | ||
@@ -84,11 +84,11 @@ "license": "SEE LICENSE IN LICENSE", | ||
"optionalDependencies": { | ||
"nodejs-polars-win32-x64-msvc": "0.5.1", | ||
"nodejs-polars-darwin-x64": "0.5.1", | ||
"nodejs-polars-linux-x64-gnu": "0.5.1", | ||
"nodejs-polars-darwin-arm64": "0.5.1", | ||
"nodejs-polars-android-arm64": "0.5.1", | ||
"nodejs-polars-linux-arm64-gnu": "0.5.1", | ||
"nodejs-polars-linux-arm-gnueabihf": "0.5.1", | ||
"nodejs-polars-win32-ia32-msvc": "0.5.1" | ||
"nodejs-polars-win32-x64-msvc": "0.5.2", | ||
"nodejs-polars-darwin-x64": "0.5.2", | ||
"nodejs-polars-linux-x64-gnu": "0.5.2", | ||
"nodejs-polars-darwin-arm64": "0.5.2", | ||
"nodejs-polars-android-arm64": "0.5.2", | ||
"nodejs-polars-linux-arm64-gnu": "0.5.2", | ||
"nodejs-polars-linux-arm-gnueabihf": "0.5.2", | ||
"nodejs-polars-win32-ia32-msvc": "0.5.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359226
9653