UNPKG

@dpkit/table

Version:

Data Package implementation in TypeScript.

14 lines (13 loc) 617 B
import type { Schema } from "@dpkit/core"; import type { DataFrame } from "nodejs-polars"; import type { Table } from "../table/index.ts"; import type { SchemaOptions } from "./Options.ts"; export interface InferSchemaOptions extends SchemaOptions { sampleRows?: number; confidence?: number; commaDecimal?: boolean; monthFirst?: boolean; keepStrings?: boolean; } export declare function inferSchemaFromTable(table: Table, options?: InferSchemaOptions): Promise<Schema>; export declare function inferSchemaFromSample(sample: DataFrame, options?: Exclude<InferSchemaOptions, "sampleRows">): Schema;