I want to create CSV file from pandas data frame in a google storage bucket using colab tool. Right now we use our gmail authentication to load csv file in storage bucket using below command
df.to_csv("gs://Jobs/data.csv")
I have checked below google links https://cloud.google.com/docs/authentication/production#linux-or-macos
Currently, we used the below code to get credentials from service account
def getCredentialsFromServiceAccount(path: str) -> service_account.Credentials:
return service_account.Credentials.from_service_account_info(
path
)
Kindly suggest