We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BigQuery: TypeError: from_arrays() takes at least 2 positional arguments (1 given)
Hi all, i tried bq client in python with the default example. Since i moved from 1.23.1 to 1.24.0 last week i get the following issue.

Its related to pyarrow but i was not upgrading pyarrow (worked with it before)

#### Environment details
- Python 3.7.6
- bigquery.__version__ '1.24.0'
- pyarrow.__version__ '0.11.1'
- Linux jupyter-generic 4.15.0-1057-aws googleapis/google-cloud-python#59-Ubuntu SMP Wed Dec 4 10:02:00 UTC 2019 x86_64 

- x86_64 x86_64 GNU/Linux
- Name: google-cloud-bigquery
- Version: 1.24.0
- Summary: Google BigQuery API client library
- Location: /opt/conda/lib/python3.7/site-packages
- Requires: google-cloud-core, google-auth, six, google-resumable-media, protobuf, google-api-core
- Required-by: pandas-gbq

#### Steps to reproduce
just running a default example form the webhttps://cloud.google.com/bigquery/docs/bigquery-storage-python-pandas

```python
import google.auth
from google.cloud import bigquery
client = bigquery.Client.from_service_account_json('cred.json')

# Download query results.
query_string = """
SELECT
CONCAT(
    'https://stackoverflow.com/questions/',
    CAST(id as STRING)) as url,
view_count
FROM `bigquery-public-data.stackoverflow.posts_questions`
WHERE tags like '%google-bigquery%'
ORDER BY view_count DESC
"""

dataframe = (
    client.query(query_string)
    .result()
    .to_dataframe()
)
print(dataframe.head())
```


#### Stack trace
```
--------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-11-61d06599dbdd> in <module>
     12 
     13 dataframe = (
---> 14     client.query(query_string)
     15     .result()
     16     .to_dataframe()

/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in to_dataframe(self, bqstorage_client, dtypes, progress_bar_type, create_bqstorage_client)
   1727                 progress_bar_type=progress_bar_type,
   1728                 bqstorage_client=bqstorage_client,
-> 1729                 create_bqstorage_client=create_bqstorage_client,
   1730             )
   1731             df = record_batch.to_pandas()

/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in to_arrow(self, progress_bar_type, bqstorage_client, create_bqstorage_client)
   1541             record_batches = []
   1542             for record_batch in self._to_arrow_iterable(
-> 1543                 bqstorage_client=bqstorage_client
   1544             ):
   1545                 record_batches.append(record_batch)

/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in _to_page_iterable(self, bqstorage_download, tabledata_list_download, bqstorage_client)
   1433             )
   1434         )
-> 1435         for item in tabledata_list_download():
   1436             yield item
   1437 

/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/_pandas_helpers.py in download_arrow_tabledata_list(pages, bq_schema)
    523 
    524     for page in pages:
--> 525         yield _tabledata_list_page_to_arrow(page, column_names, arrow_types)
    526 
    527 

/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/_pandas_helpers.py in _tabledata_list_page_to_arrow(page, column_names, arrow_types)
    499 
    500     if isinstance(column_names, pyarrow.Schema):
--> 501         return pyarrow.RecordBatch.from_arrays(arrays, schema=column_names)
    502     return pyarrow.RecordBatch.from_arrays(arrays, names=column_names)
    503 

/opt/conda/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.RecordBatch.from_arrays()

TypeError: from_arrays() takes at least 2 positional arguments (1 given)

```



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 # Copyright 2018 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 import io
16 import os
17 
18 import setuptools
19 
20 
21 # Package metadata.
22 
23 name = "google-cloud-bigquery"
24 description = "Google BigQuery API client library"
25 version = "1.24.0"
26 # Should be one of:
27 # 'Development Status :: 3 - Alpha'
28 # 'Development Status :: 4 - Beta'
29 # 'Development Status :: 5 - Production/Stable'
30 release_status = "Development Status :: 5 - Production/Stable"
31 dependencies = [
32     'enum34; python_version < "3.4"',
33     "google-auth >= 1.9.0, < 2.0dev",
34     "google-api-core >= 1.15.0, < 2.0dev",
35     "google-cloud-core >= 1.1.0, < 2.0dev",
36     "google-resumable-media >= 0.5.0, < 0.6dev",
37     "protobuf >= 3.6.0",
38     "six >=1.13.0,< 2.0.0dev",
39 ]
40 extras = {
41     "bqstorage": [
42         "google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev",
43         # Bad Linux release for 0.14.0.
44         # https://issues.apache.org/jira/browse/ARROW-5868
45         "pyarrow>=0.13.0, != 0.14.0",
46     ],
47     "pandas": ["pandas>=0.17.1"],
48     # Exclude PyArrow dependency from Windows Python 2.7.
49     'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [
50         # Bad Linux release for 0.14.0.
51         # https://issues.apache.org/jira/browse/ARROW-5868
52         "pyarrow>=0.4.1, != 0.14.0"
53     ],
54     "tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
55     "fastparquet": ["fastparquet", "python-snappy"],
56 }
57 
58 all_extras = []
59 
60 for extra in extras:
61     if extra == "fastparquet":
62         # Skip fastparquet from "all" because it is redundant with pyarrow and
63         # creates a dependency on pre-release versions of numpy. See:
64         # https://github.com/googleapis/google-cloud-python/issues/8549
65         continue
66     all_extras.extend(extras[extra])
67 
68 extras["all"] = all_extras
69 
70 # Setup boilerplate below this line.
71 
72 package_root = os.path.abspath(os.path.dirname(__file__))
73 
74 readme_filename = os.path.join(package_root, "README.rst")
75 with io.open(readme_filename, encoding="utf-8") as readme_file:
76     readme = readme_file.read()
77 
78 # Only include packages under the 'google' namespace. Do not include tests,
79 # benchmarks, etc.
80 packages = [
81     package for package in setuptools.find_packages() if package.startswith("google")
82 ]
83 
84 # Determine which namespaces are needed.
85 namespaces = ["google"]
86 if "google.cloud" in packages:
87     namespaces.append("google.cloud")
88 
89 
90 setuptools.setup(
91     name=name,
92     version=version,
93     description=description,
94     long_description=readme,
95     author="Google LLC",
96     author_email="googleapis-packages@google.com",
97     license="Apache 2.0",
98     url="https://github.com/googleapis/python-bigquery",
99     classifiers=[
100         release_status,
101         "Intended Audience :: Developers",
102         "License :: OSI Approved :: Apache Software License",
103         "Programming Language :: Python",
104         "Programming Language :: Python :: 2",
105         "Programming Language :: Python :: 2.7",
106         "Programming Language :: Python :: 3",
107         "Programming Language :: Python :: 3.5",
108         "Programming Language :: Python :: 3.6",
109         "Programming Language :: Python :: 3.7",
110         "Operating System :: OS Independent",
111         "Topic :: Internet",
112     ],
113     platforms="Posix; MacOS X; Windows",
114     packages=packages,
115     namespace_packages=namespaces,
116     install_requires=dependencies,
117     extras_require=extras,
118     python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
119     include_package_data=True,
120     zip_safe=False,
121 )
122
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -40,9 +40,7 @@
 extras = {
     "bqstorage": [
         "google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev",
-        # Bad Linux release for 0.14.0.
-        # https://issues.apache.org/jira/browse/ARROW-5868
-        "pyarrow>=0.13.0, != 0.14.0",
+        "pyarrow>=0.16.0, < 2.0dev",
     ],
     "pandas": ["pandas>=0.17.1"],
     # Exclude PyArrow dependency from Windows Python 2.7.

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,9 +40,7 @@\n extras = {\n     \"bqstorage\": [\n         \"google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev\",\n-        # Bad Linux release for 0.14.0.\n-        # https://issues.apache.org/jira/browse/ARROW-5868\n-        \"pyarrow>=0.13.0, != 0.14.0\",\n+        \"pyarrow>=0.16.0, < 2.0dev\",\n     ],\n     \"pandas\": [\"pandas>=0.17.1\"],\n     # Exclude PyArrow dependency from Windows Python 2.7.\n", "issue": "BigQuery: TypeError: from_arrays() takes at least 2 positional arguments (1 given)\nHi all, i tried bq client in python with the default example. Since i moved from 1.23.1 to 1.24.0 last week i get the following issue.\r\n\r\nIts related to pyarrow but i was not upgrading pyarrow (worked with it before)\r\n\r\n#### Environment details\r\n- Python 3.7.6\r\n- bigquery.__version__ '1.24.0'\r\n- pyarrow.__version__ '0.11.1'\r\n- Linux jupyter-generic 4.15.0-1057-aws googleapis/google-cloud-python#59-Ubuntu SMP Wed Dec 4 10:02:00 UTC 2019 x86_64 \r\n\r\n- x86_64 x86_64 GNU/Linux\r\n- Name: google-cloud-bigquery\r\n- Version: 1.24.0\r\n- Summary: Google BigQuery API client library\r\n- Location: /opt/conda/lib/python3.7/site-packages\r\n- Requires: google-cloud-core, google-auth, six, google-resumable-media, protobuf, google-api-core\r\n- Required-by: pandas-gbq\r\n\r\n#### Steps to reproduce\r\njust running a default example form the webhttps://cloud.google.com/bigquery/docs/bigquery-storage-python-pandas\r\n\r\n```python\r\nimport google.auth\r\nfrom google.cloud import bigquery\r\nclient = bigquery.Client.from_service_account_json('cred.json')\r\n\r\n# Download query results.\r\nquery_string = \"\"\"\r\nSELECT\r\nCONCAT(\r\n    'https://stackoverflow.com/questions/',\r\n    CAST(id as STRING)) as url,\r\nview_count\r\nFROM `bigquery-public-data.stackoverflow.posts_questions`\r\nWHERE tags like '%google-bigquery%'\r\nORDER BY view_count DESC\r\n\"\"\"\r\n\r\ndataframe = (\r\n    client.query(query_string)\r\n    .result()\r\n    .to_dataframe()\r\n)\r\nprint(dataframe.head())\r\n```\r\n\r\n\r\n#### Stack trace\r\n```\r\n--------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-11-61d06599dbdd> in <module>\r\n     12 \r\n     13 dataframe = (\r\n---> 14     client.query(query_string)\r\n     15     .result()\r\n     16     .to_dataframe()\r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in to_dataframe(self, bqstorage_client, dtypes, progress_bar_type, create_bqstorage_client)\r\n   1727                 progress_bar_type=progress_bar_type,\r\n   1728                 bqstorage_client=bqstorage_client,\r\n-> 1729                 create_bqstorage_client=create_bqstorage_client,\r\n   1730             )\r\n   1731             df = record_batch.to_pandas()\r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in to_arrow(self, progress_bar_type, bqstorage_client, create_bqstorage_client)\r\n   1541             record_batches = []\r\n   1542             for record_batch in self._to_arrow_iterable(\r\n-> 1543                 bqstorage_client=bqstorage_client\r\n   1544             ):\r\n   1545                 record_batches.append(record_batch)\r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in _to_page_iterable(self, bqstorage_download, tabledata_list_download, bqstorage_client)\r\n   1433             )\r\n   1434         )\r\n-> 1435         for item in tabledata_list_download():\r\n   1436             yield item\r\n   1437 \r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/_pandas_helpers.py in download_arrow_tabledata_list(pages, bq_schema)\r\n    523 \r\n    524     for page in pages:\r\n--> 525         yield _tabledata_list_page_to_arrow(page, column_names, arrow_types)\r\n    526 \r\n    527 \r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/_pandas_helpers.py in _tabledata_list_page_to_arrow(page, column_names, arrow_types)\r\n    499 \r\n    500     if isinstance(column_names, pyarrow.Schema):\r\n--> 501         return pyarrow.RecordBatch.from_arrays(arrays, schema=column_names)\r\n    502     return pyarrow.RecordBatch.from_arrays(arrays, names=column_names)\r\n    503 \r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.RecordBatch.from_arrays()\r\n\r\nTypeError: from_arrays() takes at least 2 positional arguments (1 given)\r\n\r\n```\r\n\r\n\n", "before_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport io\nimport os\n\nimport setuptools\n\n\n# Package metadata.\n\nname = \"google-cloud-bigquery\"\ndescription = \"Google BigQuery API client library\"\nversion = \"1.24.0\"\n# Should be one of:\n# 'Development Status :: 3 - Alpha'\n# 'Development Status :: 4 - Beta'\n# 'Development Status :: 5 - Production/Stable'\nrelease_status = \"Development Status :: 5 - Production/Stable\"\ndependencies = [\n    'enum34; python_version < \"3.4\"',\n    \"google-auth >= 1.9.0, < 2.0dev\",\n    \"google-api-core >= 1.15.0, < 2.0dev\",\n    \"google-cloud-core >= 1.1.0, < 2.0dev\",\n    \"google-resumable-media >= 0.5.0, < 0.6dev\",\n    \"protobuf >= 3.6.0\",\n    \"six >=1.13.0,< 2.0.0dev\",\n]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev\",\n        # Bad Linux release for 0.14.0.\n        # https://issues.apache.org/jira/browse/ARROW-5868\n        \"pyarrow>=0.13.0, != 0.14.0\",\n    ],\n    \"pandas\": [\"pandas>=0.17.1\"],\n    # Exclude PyArrow dependency from Windows Python 2.7.\n    'pyarrow: platform_system != \"Windows\" or python_version >= \"3.4\"': [\n        # Bad Linux release for 0.14.0.\n        # https://issues.apache.org/jira/browse/ARROW-5868\n        \"pyarrow>=0.4.1, != 0.14.0\"\n    ],\n    \"tqdm\": [\"tqdm >= 4.0.0, <5.0.0dev\"],\n    \"fastparquet\": [\"fastparquet\", \"python-snappy\"],\n}\n\nall_extras = []\n\nfor extra in extras:\n    if extra == \"fastparquet\":\n        # Skip fastparquet from \"all\" because it is redundant with pyarrow and\n        # creates a dependency on pre-release versions of numpy. See:\n        # https://github.com/googleapis/google-cloud-python/issues/8549\n        continue\n    all_extras.extend(extras[extra])\n\nextras[\"all\"] = all_extras\n\n# Setup boilerplate below this line.\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.rst\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package for package in setuptools.find_packages() if package.startswith(\"google\")\n]\n\n# Determine which namespaces are needed.\nnamespaces = [\"google\"]\nif \"google.cloud\" in packages:\n    namespaces.append(\"google.cloud\")\n\n\nsetuptools.setup(\n    name=name,\n    version=version,\n    description=description,\n    long_description=readme,\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    license=\"Apache 2.0\",\n    url=\"https://github.com/googleapis/python-bigquery\",\n    classifiers=[\n        release_status,\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet\",\n    ],\n    platforms=\"Posix; MacOS X; Windows\",\n    packages=packages,\n    namespace_packages=namespaces,\n    install_requires=dependencies,\n    extras_require=extras,\n    python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport io\nimport os\n\nimport setuptools\n\n\n# Package metadata.\n\nname = \"google-cloud-bigquery\"\ndescription = \"Google BigQuery API client library\"\nversion = \"1.24.0\"\n# Should be one of:\n# 'Development Status :: 3 - Alpha'\n# 'Development Status :: 4 - Beta'\n# 'Development Status :: 5 - Production/Stable'\nrelease_status = \"Development Status :: 5 - Production/Stable\"\ndependencies = [\n    'enum34; python_version < \"3.4\"',\n    \"google-auth >= 1.9.0, < 2.0dev\",\n    \"google-api-core >= 1.15.0, < 2.0dev\",\n    \"google-cloud-core >= 1.1.0, < 2.0dev\",\n    \"google-resumable-media >= 0.5.0, < 0.6dev\",\n    \"protobuf >= 3.6.0\",\n    \"six >=1.13.0,< 2.0.0dev\",\n]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev\",\n        \"pyarrow>=0.16.0, < 2.0dev\",\n    ],\n    \"pandas\": [\"pandas>=0.17.1\"],\n    # Exclude PyArrow dependency from Windows Python 2.7.\n    'pyarrow: platform_system != \"Windows\" or python_version >= \"3.4\"': [\n        # Bad Linux release for 0.14.0.\n        # https://issues.apache.org/jira/browse/ARROW-5868\n        \"pyarrow>=0.4.1, != 0.14.0\"\n    ],\n    \"tqdm\": [\"tqdm >= 4.0.0, <5.0.0dev\"],\n    \"fastparquet\": [\"fastparquet\", \"python-snappy\"],\n}\n\nall_extras = []\n\nfor extra in extras:\n    if extra == \"fastparquet\":\n        # Skip fastparquet from \"all\" because it is redundant with pyarrow and\n        # creates a dependency on pre-release versions of numpy. See:\n        # https://github.com/googleapis/google-cloud-python/issues/8549\n        continue\n    all_extras.extend(extras[extra])\n\nextras[\"all\"] = all_extras\n\n# Setup boilerplate below this line.\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.rst\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package for package in setuptools.find_packages() if package.startswith(\"google\")\n]\n\n# Determine which namespaces are needed.\nnamespaces = [\"google\"]\nif \"google.cloud\" in packages:\n    namespaces.append(\"google.cloud\")\n\n\nsetuptools.setup(\n    name=name,\n    version=version,\n    description=description,\n    long_description=readme,\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    license=\"Apache 2.0\",\n    url=\"https://github.com/googleapis/python-bigquery\",\n    classifiers=[\n        release_status,\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet\",\n    ],\n    platforms=\"Posix; MacOS X; Windows\",\n    packages=packages,\n    namespace_packages=namespaces,\n    install_requires=dependencies,\n    extras_require=extras,\n    python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}]}