MCPcopy Create free account
hub / github.com/datapane/datapane / __init__

Method __init__

python-client/src/datapane/blocks/asset.py:167–181  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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
184class DataTable(AssetBlock):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected