INNER CODE UNIT · Python

_repr_html_

beader/tianchi_nl2sql · code/nl2sql/utils/__init__.py:40

    def _repr_html_(self):
        return self.df._repr_html_()


class Tables:
    table_dict = None

    def __init__(self, table_list: list = None, table_dict: dict = None):
        self.table_dict = {}
        if isinstance(table_list, list):
            for table in table_list:
                self.table_dict[table.id] = table
        if isinstance(table_dict, dict):
            self.table_dict.update(table_dict)

    def push(self, table):
        self.table_dict[table.id] = table

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…