Skip to content

Commit febc1bd

Browse files
authored
DEPR: deprecated nonkeyword arguments in to_gbq (#54704)
deprecated nonkeyword arguments
1 parent 4556995 commit febc1bd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/source/whatsnew/v2.2.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Deprecations
134134
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_clipboard`. (:issue:`54229`)
135135
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_csv` except ``path_or_buf``. (:issue:`54229`)
136136
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_dict`. (:issue:`54229`)
137+
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_gbq` except ``destination_table``. (:issue:`54229`)
137138
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_hdf` except ``path_or_buf``. (:issue:`54229`)
138139
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_html` except ``buf``. (:issue:`54229`)
139140
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_json` except ``path_or_buf``. (:issue:`54229`)

pandas/core/frame.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,9 @@ def to_dict(
20482048

20492049
return to_dict(self, orient, into, index)
20502050

2051+
@deprecate_nonkeyword_arguments(
2052+
version="3.0", allowed_args=["self", "destination_table"], name="to_gbq"
2053+
)
20512054
def to_gbq(
20522055
self,
20532056
destination_table: str,

0 commit comments

Comments
 (0)