INNER CODE UNIT · Python

df

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

    def df(self):
        if self._df is None:
            self._df = pd.DataFrame(data=self.rows,
                                    columns=self.header.names,
                                    dtype=str)
        return self._df

    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:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…