# Path: pandas_gbq/exceptions.py
# class AccessDenied(ValueError):
#     """
#     Raised when invalid credentials are provided, or tokens have expired.
#     """
# 
# class GenericGBQException(ValueError):
#     """
#     Raised when an unrecognized Google API Error occurs.
#     """
# 
# Path: pandas_gbq/features.py
# FEATURES = Features()


import copy
import concurrent.futures
import logging
import re
import time
import typing
import warnings
import numpy as np
    import pandas
import pandas_gbq.schema
import pandas_gbq.timestamp
    import tqdm  # noqa
        import pkg_resources  # noqa
        import db_dtypes  # noqa
        import pydata_google_auth  # noqa
        import google.auth  # noqa
        import google.api_core.client_info
        import pandas
        import pandas
    import db_dtypes
    import db_dtypes
    import pandas.api.types
from datetime import datetime
from typing import Any, Dict, Optional, Sequence, Union
from pandas_gbq.exceptions import (
    AccessDenied,
    GenericGBQException,
)
from pandas_gbq.features import FEATURES
        from google_auth_oauthlib.flow import InstalledAppFlow  # noqa
        from google.cloud import bigquery  # noqa
        from google.api_core.exceptions import GoogleAPIError
        from google.api_core.exceptions import ClientError
        from pandas_gbq import auth
        from google.cloud import bigquery
        from google.cloud import bigquery
        from google.auth.exceptions import RefreshError
        from google.cloud import bigquery
        from pandas_gbq import load
    from google.api_core import exceptions as google_exceptions
    from google.cloud import bigquery
    from pandas_gbq import schema
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import Table
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import Dataset

        .. versionadded:: 0.16.0
    verbose : bool, deprecated
        Deprecated in Pandas-GBQ 0.4.0. Use the `logging module
        to adjust verbosity instead
        <https://pandas-gbq.readthedocs.io/en/latest/intro.html#logging>`__.
    private_key : str, deprecated
        Deprecated in pandas-gbq version 0.8.0. Use the ``credentials``
        parameter and
        :func:`google.oauth2.service_account.Credentials.from_service_account_info`
        or
        :func:`google.oauth2.service_account.Credentials.from_service_account_file`
        instead.
    """

    _test_google_api_imports()


    if verbose is not None and FEATURES.pandas_has_deprecated_verbose:
        warnings.warn(
            "verbose is deprecated and will be removed in "
            "a future version. Set logging level in order to vary "
            "verbosity",
            FutureWarning,
            stacklevel=1,
        )

    if api_method == "default":
        # Avoid using parquet if pandas doesn't support lossless conversions to
        # parquet timestamp. See: https://stackoverflow.com/a/69758676/101923

# Path: pandas_gbq/exceptions.py
# class AccessDenied(ValueError):
#     """
#     Raised when invalid credentials are provided, or tokens have expired.
#     """
# 
# class GenericGBQException(ValueError):
#     """
#     Raised when an unrecognized Google API Error occurs.
#     """
# 
# Path: pandas_gbq/features.py
# FEATURES = Features()


# Path: pandas_gbq/gbq.py
import copy
import concurrent.futures
import logging
import re
import time
import typing
import warnings
import numpy as np
    import pandas
import pandas_gbq.schema
import pandas_gbq.timestamp
    import tqdm  # noqa
        import pkg_resources  # noqa
        import db_dtypes  # noqa
        import pydata_google_auth  # noqa
        import google.auth  # noqa
        import google.api_core.client_info
        import pandas
        import pandas
    import db_dtypes
    import db_dtypes
    import pandas.api.types
from datetime import datetime
from typing import Any, Dict, Optional, Sequence, Union
from pandas_gbq.exceptions import (
    AccessDenied,
    GenericGBQException,
)
from pandas_gbq.features import FEATURES
        from google_auth_oauthlib.flow import InstalledAppFlow  # noqa
        from google.cloud import bigquery  # noqa
        from google.api_core.exceptions import GoogleAPIError
        from google.api_core.exceptions import ClientError
        from pandas_gbq import auth
        from google.cloud import bigquery
        from google.cloud import bigquery
        from google.auth.exceptions import RefreshError
        from google.cloud import bigquery
        from pandas_gbq import load
    from google.api_core import exceptions as google_exceptions
    from google.cloud import bigquery
    from pandas_gbq import schema
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import Table
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import Dataset


        .. versionadded:: 0.16.0
    verbose : bool, deprecated
        Deprecated in Pandas-GBQ 0.4.0. Use the `logging module
        to adjust verbosity instead
        <https://pandas-gbq.readthedocs.io/en/latest/intro.html#logging>`__.
    private_key : str, deprecated
        Deprecated in pandas-gbq version 0.8.0. Use the ``credentials``
        parameter and
        :func:`google.oauth2.service_account.Credentials.from_service_account_info`
        or
        :func:`google.oauth2.service_account.Credentials.from_service_account_file`
        instead.
    """

    _test_google_api_imports()


    if verbose is not None and FEATURES.pandas_has_deprecated_verbose:
        warnings.warn(
            "verbose is deprecated and will be removed in "
            "a future version. Set logging level in order to vary "
            "verbosity",
            FutureWarning,
            stacklevel=1,
        )

    if api_method == "default":
        # Avoid using parquet if pandas doesn't support lossless conversions to
        # parquet timestamp. See: https://stackoverflow.com/a/69758676/101923

        if FEATURES.pandas_has_parquet_with_lossless_timestamp: