Skip to content

Commit 9dc64e3

Browse files
author
Jonathan Wayne Parrott
committed
Merge pull request #128 from GoogleCloudPlatform/data-by-post
Update python docstring.
2 parents b0a9682 + 3aae3eb commit 9dc64e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bigquery/api/load_data_by_post.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535

3636
# [START make_post]
3737
def load_data(schema_path, data_path, project_id, dataset_id, table_id):
38-
"""
39-
Creates an http POST request for loading data into
40-
a bigquery table
38+
"""Loads the given data file into BigQuery.
4139
4240
Args:
4341
schema_path: the path to a file containing a valid bigquery schema.
4442
see https://cloud.google.com/bigquery/docs/reference/v2/tables
4543
data_path: the name of the file to insert into the table.
46-
47-
Returns: an http.request object
44+
project_id: The project id that the table exists under. This is also
45+
assumed to be the project id this request is to be made under.
46+
dataset_id: The dataset id of the destination table.
47+
table_id: The table id to load data into.
4848
"""
4949
# Create a bigquery service object, using the application's default auth
5050
credentials = GoogleCredentials.get_application_default()

0 commit comments

Comments
 (0)