We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e143c1f commit 6dbb376Copy full SHA for 6dbb376
pandas_gbq/gbq_connector.py
@@ -519,10 +519,8 @@ def create_user_agent(
519
)
520
delimiter = "-"
521
522
- identities = [f"pandas{delimiter}{pd.__version__}"]
523
-
524
- if user_agent is not None:
525
- user_agent = identities.append(user_agent)
+ identities = [] if user_agent is None else [user_agent]
+ identities.append(f"pandas{delimiter}{pd.__version__}")
526
527
if environment.is_vscode():
528
identities.append("vscode")
@@ -533,4 +531,4 @@ def create_user_agent(
533
531
if environment.is_jupyter_bigquery_plugin_installed():
534
532
identities.append(environment.BIGQUERY_JUPYTER_PLUGIN_NAME)
535
536
- return user_agent
+ return " ".join(identities)
0 commit comments