

def get_table(self, dataset, table):
    ' Retrieve a table if it exists, otherwise return an empty dict.\n\n        Parameters\n        ----------\n        dataset : str\n            The dataset that the table is in\n        table : str\n            The name of the table\n\n        Returns\n        -------\n        dict\n            Containing the table object if it exists, else empty\n        '
    try:
        table = self.bigquery.tables().get(projectId=self.project_id, datasetId=dataset, tableId=table).execute()
    except HttpError:
        table = {
            
        }
    return table

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.get_table/original