Commit b84b754
authored
feat(bigquery): add PendingDeprecationWarning for from_dataframe methods (#18048)
Adds `PendingDeprecationWarning` to `Client.load_table_from_dataframe()`
and `Client.insert_rows_from_dataframe()` in `google-cloud-bigquery`.
This alerts users to adopt direct `pandas_gbq.to_gbq()` entry points
ahead of future deprecation phases per the `pandas-gbq` migration
design.
* Added `PendingDeprecationWarning` to `load_table_from_dataframe` and
`insert_rows_from_dataframe` in `google/cloud/bigquery/client.py`.
* Added corresponding unit tests in `tests/unit/test_client.py`.
Fixes #<526614511 🦕1 parent b9a1379 commit b84b754
2 files changed
Lines changed: 62 additions & 1 deletion
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
| |||
2830 | 2840 | | |
2831 | 2841 | | |
2832 | 2842 | | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
2833 | 2849 | | |
2834 | 2850 | | |
2835 | 2851 | | |
| |||
3900 | 3916 | | |
3901 | 3917 | | |
3902 | 3918 | | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
3903 | 3925 | | |
3904 | 3926 | | |
3905 | 3927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6579 | 6579 | | |
6580 | 6580 | | |
6581 | 6581 | | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
| 6585 | + | |
| 6586 | + | |
| 6587 | + | |
| 6588 | + | |
| 6589 | + | |
| 6590 | + | |
| 6591 | + | |
| 6592 | + | |
| 6593 | + | |
| 6594 | + | |
| 6595 | + | |
| 6596 | + | |
| 6597 | + | |
| 6598 | + | |
| 6599 | + | |
| 6600 | + | |
| 6601 | + | |
6582 | 6602 | | |
6583 | 6603 | | |
6584 | 6604 | | |
| |||
6841 | 6861 | | |
6842 | 6862 | | |
6843 | 6863 | | |
| 6864 | + | |
6844 | 6865 | | |
6845 | 6866 | | |
6846 | 6867 | | |
6847 | | - | |
6848 | 6868 | | |
6849 | 6869 | | |
6850 | 6870 | | |
| |||
9390 | 9410 | | |
9391 | 9411 | | |
9392 | 9412 | | |
| 9413 | + | |
| 9414 | + | |
| 9415 | + | |
| 9416 | + | |
| 9417 | + | |
| 9418 | + | |
| 9419 | + | |
| 9420 | + | |
| 9421 | + | |
| 9422 | + | |
| 9423 | + | |
| 9424 | + | |
| 9425 | + | |
| 9426 | + | |
| 9427 | + | |
| 9428 | + | |
| 9429 | + | |
| 9430 | + | |
| 9431 | + | |
9393 | 9432 | | |
9394 | 9433 | | |
9395 | 9434 | | |
| |||
0 commit comments