def __init__()

in datasets/cloud_datasets/pipelines/_images/pdp_extract_tabular_metadata/script.py [0:0]


    def __init__(self, table_object: bigquery.Table):
        self.project_id = table_object.project
        self.dataset_id = table_object.dataset_id
        self.table_id = table_object.table_id
        self.type = str(table_object.table_type)
        self.created_at = table_object.created
        self.modified_at = table_object.modified
        self.description = table_object.description
        self.location = table_object.location
        if is_empty(self.description):
            self.description = np.nan
        self.num_rows = table_object.num_rows
        self.num_bytes = table_object.num_bytes
        self.num_columns = len(table_object.schema)
        self.described_columns = len(
            [s.description for s in table_object.schema if not is_empty(s.description)]
        )