TablesClient
Methods
__init__()
download()
Downloads a table from Datagrok.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | Identifier of a table. Can be accessed from context panel. Several options supppored: UUID, Grok names (e.g. Namespace.Project.Table) |
Returns
| Type | Description |
|---|---|
| pandas.DataFrame | Dataframe with table data |
upload()
Uploads a table to Datagrok.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | Name for new table. If in grok format, can also specify project and namespace. |
| dataframe | pandas.Dataframe | table data to save |
Returns
| Type | Description |
|---|---|
| Dict[str, Any] | set of identifiers for the uploaded table |
create_dashboard()
Create a new dashboard in Datagrok.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | Name for the new dashboard |
| table_ids | str | Comma-separated list of table IDs to include in the dashboard |
| layout_filename | Optional[str] | Optional path to a JSON file containing the dashboard layout |
Returns
| Type | Description |
|---|---|
| Dict[str, Any] | Dictionary containing the dashboard identifiers and metadata |