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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now