I've been trying to read a bucket in gcs directly into a pandas dataframe like this:
gcs_df = pandas.read_csv("gs://my_bucket/my_file.csv")
This results into:
gcsfs.utils.HttpError: Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.
due to the fact that I haven't set up any credentials in my local machine (from what I read).
For all other features of the scripts I was using a service account via:
sa_creds = service_account.Credentials.from_service_account_file("my_sa_key.json")
Can I somehow pass this info into the read_csv so I won't have to use the account in my local machine?
Any ideas?