import google.datalab.storage as storage
#Create an object for the specific bucket
bucket_object = storage.Bucket('datalab-project-1-239921')
#iterate through the objects and print them
for obj in bucket_object.objects():
print(obj.key)
Wednesday, May 15, 2019
DataEng: GCS: retrieving information from Bucket objects with gcs command and python API
Retrieving information from the bucket can be achieved with either through gcs command line or google lab python API.
Subscribe to:
Post Comments (Atom)
Pandas: SQL Like pandas operations
Pandas's SQL Like operations such as WHERE clause. = != >= str.contains() & | .isin() .isnull() .notnull() ....
-
BigQuery can be performed in the Console's BigQuery or through Jupyter Notebook. Prior to performing a query from Jupyter Notebook, a ...
-
Datalab can timeout if unattended for a bit of time. Notebook for the GCP Datalab session will timeout as well. Reconnect to...
-
datalab create datalab-project-1 datalab connect datalab-project-1 --stop and stop the billing datalab stop datalab-project-1 -- li...
No comments:
Post a Comment