gradio/js/dataframe/shared/utils.ts
Abubakar Abid 2a5b9e03b1
Added support for pandas Styler object to gr.DataFrame (initially just sets the display_value) (#5569)
* adding precision to df

* add changeset

* docstring

* precision

* add changeset

* fix

* fixes

* add changeset

* add visual test

* lint

* fixes

* lint

* format

* add changeset

* ts changes

* analytics

* dataframe typing

* typing

* demo

* fix

* lint

* interactive dataframe

* dataframe

* fix typing

* add test

* upgrade pandas version

* fix pandas version

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-02 14:02:03 -07:00

8 lines
287 B
TypeScript

export type Headers = string[];
export type Data = (string | number)[][];
export type Datatype = "str" | "markdown" | "html" | "number" | "bool" | "date";
export type Metadata = {
[key: string]: string[][] | null;
} | null;
export type HeadersWithIDs = { value: string; id: string }[];