cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Esteemed Contributor III
Esteemed Contributor III

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.