# AUTOGENERATED! DO NOT EDIT! File to edit: 02_utils.ipynb (unless otherwise specified).

__all__ = ['does_table_exist']

# Cell
#export
import pandas as pd
from dotenv import load_dotenv
load_dotenv()
from google.cloud import bigquery
from google.cloud.exceptions import NotFound

# Cell


def does_table_exist(bq_client, table_id):
    """
    Check if table exists in BigQuery.
    """
    try:
        bq_client.get_table(table_id)
        return True
    except NotFound:
        return False

