@antv/data-wizard
Version:
A js/ts library for data processing
19 lines (18 loc) • 661 B
TypeScript
import BaseFrame from './base-frame';
import type { SeriesData, Extra, Axis } from './types';
export declare type SeriesExtra = Pick<Extra, 'indexes' | 'fillValue' | 'columnTypes'>;
/** 1D data structure */
export default class Series extends BaseFrame {
constructor(data: SeriesData, extra?: SeriesExtra);
get shape(): [number];
/**
* Get data by row location and column location.
* @param rowLoc
*/
get(rowLoc: Axis | Axis[] | string): Series | any;
/**
* Get data by row location and column location using integer index.
* @param rowLoc
*/
getByIndex(rowLoc: number | number[] | string): Series | any;
}