Skip to main content

TablesClient

Methods​

__init__()​

download()​

Downloads a table from Datagrok.

Parameters

NameTypeDescription
namestrIdentifier of a table. Can be accessed from context panel. Several options supppored: UUID, Grok names (e.g. Namespace.Project.Table)

Returns

TypeDescription
pandas.DataFrameDataframe with table data

upload()​

Uploads a table to Datagrok.

Parameters

NameTypeDescription
namestrName for new table. If in grok format, can also specify project and namespace.
dataframepandas.Dataframetable data to save

Returns

TypeDescription
Dict[str, Any]set of identifiers for the uploaded table

create_dashboard()​

Create a new dashboard in Datagrok.

Parameters

NameTypeDescription
namestrName for the new dashboard
table_idsstrComma-separated list of table IDs to include in the dashboard
layout_filenameOptional[str]Optional path to a JSON file containing the dashboard layout

Returns

TypeDescription
Dict[str, Any]Dictionary containing the dashboard identifiers and metadata