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: 

Reading a adls gen 2 csv file from db using standard pandas

riccostamendes
New Contributor II

i have mounted the adls container where the data are, but I cannot read the files with pandas ('pd.read_csv') even though I have attached the prefix '/dbfs/' to the path . Instead if I use 'spark.read.csv', I have no problems.

Anyone knows why this is happening and how it can be fixed without altering the code ? I want to read the data with pandas.

3 REPLIES 3

Debayan
Databricks Employee
Databricks Employee

Hi, When you are not able to read the files, what is the error you get?

'file does not exist'. but the file is there in the blob and you can see it through dbutils...

can you share your code? a minimal code snippet will help us.

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