<commit_before>Privacy
=======

This package is a `PyData project <https://pydata.org/>`_ and is subject to
the `NumFocus privacy policy <https://numfocus.org/privacy-policy>`_. Your
use of Google APIs with this module is subject to each API's respective
`terms of service <https://developers.google.com/terms/>`_.

Google account and user data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Accessing user data
~~~~~~~~~~~~~~~~~~~

The :mod:`pandas_gbq` module accesses your Google user account, with
the list of `scopes
<https://developers.google.com/identity/protocols/googlescopes>`_ that you
specify. Depending on your specified list of scopes, the credentials returned
by this library may provide access to other user data, such as your email
address, Google Cloud Platform resources, Google Drive files, or Google
Sheets.

Storing user data
~~~~~~~~~~~~~~~~~

By default, your credentials are stored to a local file, such as
``~/.config/pandas_gbq/bigquery_credentials.dat``. See the<commit_msg>DOC: Clarify data access in the privacy document.<commit_after>Privacy
=======

This package is a `PyData project <https://pydata.org/>`_ and is subject to
the `NumFocus privacy policy <https://numfocus.org/privacy-policy>`_. Your
use of Google APIs with this module is subject to each API's respective
`terms of service <https://developers.google.com/terms/>`_.

Google account and user data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Accessing user data
~~~~~~~~~~~~~~~~~~~

The :mod:`pandas_gbq` module accesses Google Cloud Platform resources from
your local machine. Your machine communicates directly with the Google APIs.

The :func:`~pandas_gbq.read_gbq` function can read and
write BigQuery data (and other data such as Google Sheets or Cloud Storage,
via the federated query feature) through the BigQuery query interface via
queries you supply.

The :func:`~pandas_gbq.to_gbq` method can write data you supply to a
BigQuery table.

Storing user data
~~~~~~~~~~~~~~~~~

By default, your credentials are stored to a local file, such as
``~/.config/pandas_gbq/bigquery_credentials.dat``. See the
{'fraction_non_alphanumeric': 0.13934426229508196, 'fraction_numerical': 0.0, 'mean_word_length': 5.306990881458966, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2723249', 'n_tokens_mistral': 596, 'n_tokens_neox': 575, 'n_words': 245}