code: def to_gbq(
      dataframe: DataFrame,
      destination_table: str,
      project_id: str | None = None,
      chunksize: int | None = None,
      reauth: bool = False,
      if_exists: str = "fail",
      auth_local_webserver: bool = True,
      table_schema: list[dict[str, str]] | None = None,
      location: str | None = None,
      progress_bar: bool = True,
      credentials: google.auth.credentials.Credentials | None = None,
  ) -> None:
      warnings.warn(
          "to_gbq is deprecated and will be removed in a future version. "
          "Please use pandas_gbq.to_gbq instead: "
          "https://pandas-gbq.readthedocs.io/en/latest/api.html#pandas_gbq.to_gbq",
          FutureWarning,
          stacklevel=find_stack_level(),
      )
      pandas_gbq = _try_import()
      pandas_gbq.to_gbq(
          dataframe,
          destination_table,
          project_id=project_id,
          chunksize=chunksize,
          reauth=reauth,
          if_exists=if_exists,
          auth_local_webserver=auth_local_webserver,
          table_schema=table_schema,
          location=location,
          progress_bar=progress_bar,
          credentials=credentials,
      )
  
file_path: pandas/pandas/io/gbq.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  import warnings
  from pandas.compat._optional import import_optional_dependency
  from pandas.util._exceptions import find_stack_level
label_desc: Use image node_id 3 for calling a global function with example usage: to_gbq(dataframe, destination_table, project_id, chunksize, reauth, if_exists, auth_local_webserver, table_schema, location, progress_bar, credentials) without return types