-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to_gbq and read_gbq to pandas-gbq 0.5.0 #21628
Conversation
The docs needs some corrections in order to pass the Pandas docs linter in pandas-dev/pandas#21628
The docs needs some corrections in order to pass the Pandas docs linter in pandas-dev/pandas#21628
Codecov Report
@@ Coverage Diff @@
## master #21628 +/- ##
=======================================
Coverage 91.9% 91.9%
=======================================
Files 154 154
Lines 49562 49562
=======================================
Hits 45549 45549
Misses 4013 4013
Continue to review full report at Codecov.
|
Travis failure appears to be unrelated to this change. |
Use the `local webserver flow`_ instead of the `console flow`_ | ||
when getting user credentials. | ||
|
||
.. _local webserver flow: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think these break linting, need a #noqa
I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding # noqa
breaks the link. Sphinx generates a link like pandas/doc/build/html/generated_single/pandas.read_gbq.html#noqahttp://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server
when I add this.
I do not get any lint errors when I run git diff upstream/master -u -- "*.py" | flake8 --diff
and scripts/validate_docstrings.py pandas.read_gbq
also passes.
Name of table to be written, in the form 'dataset.tablename'. | ||
project_id : str | ||
Google BigQuery Account project ID. | ||
Name of table to be written, in the form ``dataset.tablename``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think needs to be single backticks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two backticks is code font in Sphinx RST, which is what I want.
doc/source/whatsnew/v0.24.0.txt
Outdated
@@ -18,6 +18,8 @@ Other Enhancements | |||
- :func:`Series.mode` and :func:`DataFrame.mode` now support the ``dropna`` parameter which can be used to specify whether NaN/NaT values should be considered (:issue:`17534`) | |||
- :func:`to_csv` now supports ``compression`` keyword when a file handle is passed. (:issue:`21227`) | |||
- :meth:`Index.droplevel` is now implemented also for flat indexes, for compatibility with MultiIndex (:issue:`21115`) | |||
- :func:`to_gbq` and :func:`read_gbq` signature and documentation updated to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add here a link to the pandas-gbq docs whatsnew for 0.5.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add link to Pandas-GBQ 0.5.0 in what's new. * Remove unnecessary sleep in GBQ tests. Closes googleapis/python-bigquery-pandas#177 Closes pandas-dev#21627
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with link to Pandas-GBQ changelog and rebase on master.
Name of table to be written, in the form 'dataset.tablename'. | ||
project_id : str | ||
Google BigQuery Account project ID. | ||
Name of table to be written, in the form ``dataset.tablename``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two backticks is code font in Sphinx RST, which is what I want.
doc/source/whatsnew/v0.24.0.txt
Outdated
@@ -18,6 +18,8 @@ Other Enhancements | |||
- :func:`Series.mode` and :func:`DataFrame.mode` now support the ``dropna`` parameter which can be used to specify whether NaN/NaT values should be considered (:issue:`17534`) | |||
- :func:`to_csv` now supports ``compression`` keyword when a file handle is passed. (:issue:`21227`) | |||
- :meth:`Index.droplevel` is now implemented also for flat indexes, for compatibility with MultiIndex (:issue:`21115`) | |||
- :func:`to_gbq` and :func:`read_gbq` signature and documentation updated to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the `local webserver flow`_ instead of the `console flow`_ | ||
when getting user credentials. | ||
|
||
.. _local webserver flow: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding # noqa
breaks the link. Sphinx generates a link like pandas/doc/build/html/generated_single/pandas.read_gbq.html#noqahttp://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server
when I add this.
I do not get any lint errors when I run git diff upstream/master -u -- "*.py" | flake8 --diff
and scripts/validate_docstrings.py pandas.read_gbq
also passes.
Looks like Travis and Circle are both happy now that I rebased. |
I am not really familiar with the gbq code, but, did we consider making this just a passthrough of |
@jorisvandenbossche I considered (and even coded) that in #20564 The development experience is nicer (IDEs understand them better) without using The |
i think writing out the kwargs is nice from a usability pov - we do this for other apis as well |
Yep, no problem, was just wondering! |
thanks @tswast ! |
* Add link to Pandas-GBQ 0.5.0 in what's new. * Remove unnecessary sleep in GBQ tests. Closes googleapis/python-bigquery-pandas#177 Closes pandas-dev#21627
Closes googleapis/python-bigquery-pandas#177
Closes #21627
git diff upstream/master -u -- "*.py" | flake8 --diff
I've also verified that the docs build and render well with
Output from
scripts/validate_docstrings.py pandas.read_gbq
:Output from
scripts/validate_docstrings.py pandas.DataFrame.to_gbq
: