Args: data: The pandas `Styler` instance or dataframe to generate the table from caption: A caption to display below the table (optional) name: A unique name for the block to reference when adding text or embedding (optional) label: A label us
(
self,
data: t.Union[pd.DataFrame, Styler],
caption: t.Optional[str] = None,
name: BlockId = None,
label: str = None,
)
| 165 | _tag = "Table" |
| 166 | |
| 167 | def __init__( |
| 168 | self, |
| 169 | data: t.Union[pd.DataFrame, Styler], |
| 170 | caption: t.Optional[str] = None, |
| 171 | name: BlockId = None, |
| 172 | label: str = None, |
| 173 | ): |
| 174 | """ |
| 175 | Args: |
| 176 | data: The pandas `Styler` instance or dataframe to generate the table from |
| 177 | caption: A caption to display below the table (optional) |
| 178 | name: A unique name for the block to reference when adding text or embedding (optional) |
| 179 | label: A label used when displaying the block (optional) |
| 180 | """ |
| 181 | super().__init__(data=data, caption=caption, name=name, label=label) |
| 182 | |
| 183 | |
| 184 | class DataTable(AssetBlock): |