From 52e9c478c290e53e23a5c977d8476fae798b5a18 Mon Sep 17 00:00:00 2001 From: ShantanuKumar Date: Sat, 25 Apr 2020 16:50:55 +0200 Subject: [PATCH] python 3.5 doesn't support f-string --- pandas_gbq/gbq.py | 4 +++- tests/system/test_gbq.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas_gbq/gbq.py b/pandas_gbq/gbq.py index e955c9f6..192cca8f 100644 --- a/pandas_gbq/gbq.py +++ b/pandas_gbq/gbq.py @@ -1390,7 +1390,9 @@ def schema(self, table_id): Fields representing the schema """ if not self.exists(table_id): - raise NotFoundException(f"Table {table_id} does not exist") + raise NotFoundException( + "Table {0} does not exist".format(table_id) + ) original_schema = super(_Table, self).schema(self.dataset_id, table_id) return original_schema diff --git a/tests/system/test_gbq.py b/tests/system/test_gbq.py index c5bdaa08..3c85ec2b 100644 --- a/tests/system/test_gbq.py +++ b/tests/system/test_gbq.py @@ -1725,7 +1725,7 @@ def test_schema_is_not_overwritten(gbq_table, gbq_connector): gbq_table.create(table_id, table_schema) gbq.to_gbq( pandas.DataFrame({"A": [1.0], "B": [2.0], "C": ["a"]}), - f"{gbq_table.dataset_id}.{table_id}", + "{0}.{1}".format(gbq_table.dataset_id, table_id), project_id=gbq_connector.project_id, if_exists="append", )