This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Import BigQuery from google.cloud | |
| from google.cloud import bigquery | |
| ## Inputs from forms ## | |
| GCP_PROJECT_ID = 'your_project_ID_here' #@param {type:"string"} | |
| GCS_Bucket_Location = 'europe-west2' #@param ["asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-southeast1", "australia-southeast1", "europe-north1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "northamerica-northeast1", "southamerica-east1", "us-central1", "us-east1", "us-east4", "us-west1", "us-west2"] | |
| # Create a client instance for your project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GCS_Bucket_Name = 'apache_seo_logs' #@param {type:"string"} | |
| GCS_File_Path = 'Loggy*' #@param {type:"string"} | |
| GCS_Full_Path = "gs://" + GCS_Bucket_Name + "/" + GCS_File_Path | |
| print("the path to your GCS folder is: " + GCS_Full_Path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Import libraries | |
| import pandas as pd | |
| import numpy as np | |
| import socket | |
| import json | |
| #Connect Python to your GCP project | |
| from google.colab import auth | |
| auth.authenticate_user() |
NewerOlder