Load an Excel File (located in Databricks Repo connected to Azure DevOps) into a dataframe

pkgltn
New Contributor III

Hi,

How can I load an Excel File (located in Databricks Repo connected to Azure DevOps) into a dataframe? When I pass the full path into the load method, it displays an error.

java.io.FileNotFoundException Has someone done it previously?

Aviral-Bhardwaj
Esteemed Contributor III

Please give us exact file and code , we will try to debug it , I have done this multiple time, please share more details

Thanks

Aviral Bhardwaj

AviralBhardwaj

pkgltn
New Contributor III

Hi,

Just managed to do it.

  • Upgraded the cluster to the latest version because Files in Repos only works in most recent versions of the cluster.
  • When loading the dataframe, specify the path as follows: file:/Workspace/Repos/user@email.com/filepath/filename.xlsx

View solution in original post