Read csv file from GCS

PHOTO EMBED

Sun Jan 23 2022 23:09:59 GMT+0000 (Coordinated Universal Time)

Saved by @jmbenedetto #python

gcp_key='../gcp_key.json'
fs = gcsfs.GCSFileSystem(project=gcp_project, access="read", token=gcp_key)
df_ext = pd.read_csv(file_name,storage_options={"token": gcp_key})
content_copyCOPY