I am trying to write in my google sheet through Databricks but when it comes to reading the json, file containing the credentials, I am getting the error that No such file or directory exists.
import gspread
gc = gspread.service_account(filename='dbfs:/FileStore/shared_uploads/abc@gmail.com/myapi_3115465_2ed05-3.json')
sh = gc.open_by_key('1********_g3kkhhA_9vMyp9piw')
worksheet = sh.sheet1
worksheet.update_cell(1,1,103032)
Getting the following error when I run the above code
FileNotFoundError: [Errno 2] No such file or directory: 'dbfs:/FileStore/shared_uploads/abc@gmail.com/myapi_3115465_2ed05-3.json'