application_vnd.jupyter.stderr_output_1.png
from google.cloud import bigquery

PROJECT_ID = 'YOUR_OWN_PROJECT_ID'
from google.cloud import bigquery
client = bigquery.Client(project=PROJECT_ID, location='US')

path = '../input/'
dataset_id = 'titanic'
dataset_ref = client.dataset(dataset_id)
job_config = bigquery.LoadJobConfig()
job_config.source_format = bigquery.SourceFormat.CSV
job_config.skip_leading_rows = 1
job_config.autodetect = True

existing_datasets = [dataset.dataset_id for dataset in client.list_datasets()]
if not dataset_id in existing_datasets:
    client.create_dataset(dataset_id)