We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f02e63 commit 927de02Copy full SHA for 927de02
pandas/core/frame.py
@@ -1396,13 +1396,12 @@ def to_gbq(self, destination_table, project_id=None, chunksize=None,
1396
read_gbq : Read a DataFrame from Google BigQuery.
1397
"""
1398
from pandas.io import gbq
1399
- return gbq.to_gbq(
1400
- self, destination_table, project_id=project_id,
1401
- chunksize=chunksize, reauth=reauth, if_exists=if_exists,
1402
- auth_local_webserver=auth_local_webserver,
1403
- table_schema=table_schema, location=location,
1404
- progress_bar=progress_bar, credentials=credentials,
1405
- verbose=verbose, private_key=private_key)
+ gbq.to_gbq(self, 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,
+ verbose=verbose, private_key=private_key)
1406
1407
@classmethod
1408
def from_records(cls, data, index=None, exclude=None, columns=None,
pandas/core/generic.py
@@ -2403,7 +2403,7 @@ def to_hdf(self, path_or_buf, key, **kwargs):
2403
>>> os.remove('data.h5')
2404
2405
from pandas.io import pytables
2406
- return pytables.to_hdf(path_or_buf, key, self, **kwargs)
+ pytables.to_hdf(path_or_buf, key, self, **kwargs)
2407
2408
def to_msgpack(self, path_or_buf=None, encoding='utf-8', **kwargs):
2409
@@ -2615,8 +2615,7 @@ def to_pickle(self, path, compression='infer',
2615
>>> os.remove("./dummy.pkl")
2616
2617
from pandas.io.pickle import to_pickle
2618
- return to_pickle(self, path, compression=compression,
2619
- protocol=protocol)
+ to_pickle(self, path, compression=compression, protocol=protocol)
2620
2621
def to_clipboard(self, excel=True, sep=None, **kwargs):
2622
r"""
pandas/io/gbq.py
@@ -172,9 +172,9 @@ def to_gbq(dataframe, destination_table, project_id=None, chunksize=None,
172
table_schema=None, location=None, progress_bar=True,
173
credentials=None, verbose=None, private_key=None):
174
pandas_gbq = _try_import()
175
- return pandas_gbq.to_gbq(
176
- dataframe, destination_table, project_id=project_id,
177
178
- auth_local_webserver=auth_local_webserver, table_schema=table_schema,
179
- location=location, progress_bar=progress_bar,
180
- credentials=credentials, verbose=verbose, private_key=private_key)
+ pandas_gbq.to_gbq(dataframe, destination_table, project_id=project_id,
0 commit comments