frank26364
New Contributor III

Hi Kaniz, thank you for you response.

I tried %s/pdf-recognized/output.csv but I received the following error message:

UsageError: Line magic function `%s/pdf-recognized/output.csv` not found

Could you confirm if this would be the way to add this line:

account_name = "mystorageaccount"
account_key = "fs.azure.account.key." + account_name + ".blob.core.windows.net"
    
try:
    dbutils.fs.mount(
        source = "wasbs://pdf-recognized@mystorageaccount.blob.core.windows.net",
        mount_point = "/mnt/pdf-recognized",
        extra_configs = {account_key: dbutils.secrets.get(scope ="formrec", key="formreckey")} )
       
except:
    print('Directory already mounted or error')
%s/pdf-recognized/output.csv

Thank you