You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.
While running the following command on Databriks (Exercise 4 > Task 4 > Step 17) I am getting a path error.
#Create a Dataframe containing data from all the files in blob storage, regardless of the folder they are located within.
df = spark.read.options(header='true', inferSchema='true').csv("dbfs:/mnt/smartmeters/*/*/*.csv",header=True)
print(df.dtypes)
I am getting an error that the path "dbfs:/mnt/smartmeters///*.csv" is not correct.
Instead of that, I tried the following command and it solved the error.
#Create a Dataframe containing data from all the files in blob storage, regardless of the folder they are located within.
df = spark.read.options(header='true', inferSchema='true').csv("dbfs:/mnt/smartmeters/*/*/*/*/*.csv",header=True)
print(df.dtypes)
The text was updated successfully, but these errors were encountered:
While running the following command on Databriks (Exercise 4 > Task 4 > Step 17) I am getting a path error.
I am getting an error that the path "dbfs:/mnt/smartmeters///*.csv" is not correct.
Instead of that, I tried the following command and it solved the error.
The text was updated successfully, but these errors were encountered: