Forum Discussion
notebook reading .csv
hello,
in notebook1, I can read the .csv file into a dataframe
in notebook2, can not read the same .csv file. --> error is as per below
this is what I am doing in fabric notebook
path = 'Files/pathname/year=2024/month=08/day=16/xyz.csv'
df=spark.read.csv(path)
display(df)
error:
-------------------------------
I assume both Notebooks are in the same Workspace and both have the same Lakehouse attached as the default?
I assume you are using the exact same code to read the .csv file; nothing different?
Are they both running under the same spark configuration?
Are there any libraries being loaded into 1 Notebook and not the other?
3 Replies
- jwinchell40Resolver III
I assume both Notebooks are in the same Workspace and both have the same Lakehouse attached as the default?
I assume you are using the exact same code to read the .csv file; nothing different?
Are they both running under the same spark configuration?
Are there any libraries being loaded into 1 Notebook and not the other?
- arkiboys2Helper IV
both Notebooks are in the same Workspace - yes
and both have the same Lakehouse attached as the default? - how do I check this?I assume you are using the exact same code to read the .csv file; nothing different? - correct
Are they both running under the same spark configuration? - correct
Are there any libraries being loaded into 1 Notebook and not the other? - no
- arkiboys2Helper IV
thank you. the problem was not having the correct lakehouse.