nodejs-polars
Version:
Polars: Blazingly fast DataFrames in Rust, Python, Node.js, R and SQL
27 lines (26 loc) • 880 B
TypeScript
import { type DataFrame } from "./dataframe";
import { type LazyDataFrame } from "./lazy/dataframe";
import { type Series } from "./series";
import type { ConcatOptions } from "./types";
/**
* _Repeat a single value n times and collect into a Series._
* @param value - Value to repeat.
* @param n - Number of repeats
* @param name - Optional name of the Series
* @example
*
* ```
*
* > const s = pl.repeat("a", 5)
* > s.toArray()
* ["a", "a", "a", "a", "a"]
*
* ```
*/
export declare function repeat<V>(value: V, n: number, name?: string): Series;
export declare function concat(items: Array<DataFrame>, options?: ConcatOptions): DataFrame;
export declare function concat(items: Array<Series>, options?: {
rechunk: boolean;
parallel: boolean;
}): Series;
export declare function concat(items: Array<LazyDataFrame>, options?: ConcatOptions): LazyDataFrame;