File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
131
131
pandas.api.extensions.ExtensionArray.ndim \
132
132
pandas.api.extensions.ExtensionArray.shape \
133
133
pandas.api.extensions.ExtensionArray.tolist \
134
- pandas.DataFrame.to_gbq \
135
134
pandas.DataFrame.__dataframe__
136
135
RET=$(( $RET + $? )) ; echo $MSG " DONE"
137
136
Original file line number Diff line number Diff line change @@ -2104,6 +2104,25 @@ def to_gbq(
2104
2104
--------
2105
2105
pandas_gbq.to_gbq : This function in the pandas-gbq library.
2106
2106
read_gbq : Read a DataFrame from Google BigQuery.
2107
+
2108
+ Examples
2109
+ --------
2110
+ Example taken from `Google BigQuery documentation
2111
+ <https://cloud.google.com/bigquery/docs/samples/bigquery-pandas-gbq-to-gbq-simple>`_
2112
+
2113
+ >>> project_id = "my-project"
2114
+ >>> table_id = 'my_dataset.my_table'
2115
+ >>> df = pd.DataFrame({
2116
+ ... "my_string": ["a", "b", "c"],
2117
+ ... "my_int64": [1, 2, 3],
2118
+ ... "my_float64": [4.0, 5.0, 6.0],
2119
+ ... "my_bool1": [True, False, True],
2120
+ ... "my_bool2": [False, True, False],
2121
+ ... "my_dates": pd.date_range("now", periods=3),
2122
+ ... }
2123
+ ... )
2124
+
2125
+ >>> df.to_gbq(table_id, project_id=project_id) # doctest: +SKIP
2107
2126
"""
2108
2127
from pandas .io import gbq
2109
2128
You can’t perform that action at this time.
0 commit comments