cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

pd.read_csv failed

THIAM_HUATTAN
Valued Contributor
3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

Pandas will not see dbfs storage this way. You need to change to pandas on spark or use the classic path.

import pyspark.pandas as pd
pd.read_csv("dbfs:/your_path/your_file.csv")
 
import pandas as pd
pd.read_csv("/dbfs/your_path/your_file.csv")

THIAM_HUATTAN
Valued Contributor

Thanks for your kind reply:

Below works for me:

https://imgur.com/BmMzatI

But why, as you mentioned, using the classic path, below does not work?

https://imgur.com/Ba1a4Iv

Hi @THIAM HUAT TANโ€‹ ,

Just a friendly follow-up. Did any of the responses help you to resolve your question? if it did, please mark it as best. Otherwise, please let us know if you still need help.

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.