From 6b6416ccaab77c2c325901242516d289cee399c6 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Fri, 11 Oct 2024 10:01:40 +0000 Subject: [PATCH] Adds deprecation warning --- pandas_gbq/gbq.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandas_gbq/gbq.py b/pandas_gbq/gbq.py index 3a61cfeb..08f3af6f 100644 --- a/pandas_gbq/gbq.py +++ b/pandas_gbq/gbq.py @@ -1460,12 +1460,21 @@ def create_user_agent( Returns (str): Customized user agent string. + + Deprecation Warning: + In a future major release, the default delimiter will be changed to + a `/` in accordance with RFC9110. """ import pandas as pd if rfc9110_delimiter: delimiter = "/" else: + warnings.warn( + "In a future major release, the default delimiter will be " + "changed to a `/` in accordance with RFC9110", + PendingDeprecationWarning, + ) delimiter = "-" identity = f"pandas{delimiter}{pd.__version__}"