I am trying to read a CSV file in a Google Cloud bucket locally using Pandas.
I have logged in using gcloud auth login
and have configured the project. However, when I try to read the CSV file using df = pd.read_csv(f"gs://mybucket/myfolder/mycsv.csv")
I get a 401 error:
Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object., 401
I was wondering what further steps should I take so I can directly read the csv file? I have checked the gcloud config
and my account is listed there.