cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

2 REPLIES 2

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group