Skip to main content
Version: Python

attributes

The attributes method returns all of a Table's defined attributes.

Syntax

source.attributes() -> dict

Parameters

This method takes no arguments.

Returns

A Dict of all of the Table's defined attributes.

Example

Here, we create a table and a time table, and print their attributes.

from deephaven import new_table, time_table
from deephaven.column import string_col

source = new_table(
[
string_col("Title", ["content"]),
string_col("ColumnName", ["column_content"]),
string_col("AnotherColumn", ["string"]),
]
)

tt = time_table("PT1S")

print(source.attributes())
print(tt.attributes())