nodejs-polars
Version:
Polars: Blazingly fast DataFrames in Rust, Python, Node.js, R and SQL
39 lines (38 loc) • 1.87 kB
TypeScript
import { DataFrame } from "./dataframe";
import { LazyDataFrame } from "./lazy/dataframe";
import { Expr } from "./lazy/expr";
import { Series } from "./series";
/** @ignore */
export type ValueOrArray<T> = T | Array<ValueOrArray<T>>;
/** @ignore */
export type ColumnSelection = ValueOrArray<string>;
/** @ignore */
export type ExpressionSelection = ValueOrArray<Expr>;
/** @ignore */
export type ColumnsOrExpr = ColumnSelection | ExpressionSelection;
/** @ignore */
export type ExprOrString = Expr | string;
/**
* @typeParam StartBy - The strategy to determine the start of the first window by.
*/
export type StartBy = "window" | "datapoint" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
/** @ignore */
export declare function columnOrColumns(columns: ColumnSelection | string | Array<string> | undefined): Array<string> | undefined;
/** @ignore */
export declare function columnOrColumnsStrict(...columns: string[] | ValueOrArray<string>[]): Array<string>;
/** @ignore */
export declare function selectionToExprList(columns: any[], stringToLit?: any): any[];
/** @ignore */
export declare function isPath(s: string, expectedExtensions?: string[]): boolean;
export declare const range: (start: number, end: number) => number[];
export declare const isDataFrameArray: (ty: any) => ty is DataFrame[];
export declare const isLazyDataFrameArray: (ty: any) => ty is LazyDataFrame[];
export declare const isSeriesArray: <_T>(ty: any) => ty is Series[];
export declare const isExprArray: (ty: any) => ty is Expr[];
export declare const isIterator: <T>(ty: any) => ty is Iterable<T>;
export declare const regexToString: (r: string | RegExp) => string;
export declare const commonValue: (...arr: string[][]) => string[];
export declare const INSPECT_SYMBOL: unique symbol;
export type Simplify<T> = {
[K in keyof T]: T[K];
} & {};