Data Types
interface DataFrameOptions {
index?: Index[];
columns?: string[];
}
interface SeriesOptions {
name?: string;
index?: Index[];
dtype?: DType;
}
interface GroupByOptions {
as_index?: boolean;
sort?: boolean;
dropna?: boolean;
}
type DataValue = string | number | boolean | Date | null;
type Index = string | number;
type DType = "int32" | "float64" | "string" | "bool" | "datetime";
type AggFunc = "sum" | "mean" | "count" | "size" | "min" | "max" | "std" | "var" | "first" | "last";
type AggSpec = AggFunc | { [column: string]: AggFunc | AggFunc[] };