DataTable¶
- class stgraph.utils.DataTable(title: str, col_name_list: list[str])[source]¶
Bases:
objectTable that can display benchmarking data and other info.
This class provides functionality to create and display tables for benchmarking data along with other relevant information.
Example
from stgraph.utils import DataTable table = DataTable( title = "GCN Benchmark Data", col_name_list = ["Model", "Time", "MSE"] ) table.add_row("GCN", 12.56, 45.89) table.add_row("GCN", 23.34, 44.32) table.display()
- Parameters:
title (str) – The title of the table
col_name_list (list[str]) – A list of the table column names
- title¶
The title of the table
- Type:
str
- col_name_list¶
A list of the table column names
- Type:
list[str]