SaQuiB
SaQuiB

Reputation: 77

Python code to load CSV data from Google Storage to Bigquery?

I am pretty new in this, so wanted to have code and process to load data from csv file (Placed in Google Storage) to BigQuery Table using the python code and DataFlow.

Thanks in advance.

Upvotes: 3

Views: 10445

Answers (1)

Temu
Temu

Reputation: 879

There are different BigQuery libraries depending on the language. For Python you would find this one.

But if what you want is the exactly piece of code to upload CSV from Google Cloud Storage to Bigquery, this example might work for you: "Loading CSV data into a new table"

You can see also in the same documentation page "Appending to or overwriting a table with CSV data".

You can go also to the GitHub in order to check all the methods available for Python.

Upvotes: 3

Related Questions