From the course: Complete Guide to Databricks for Data Engineering

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Read a CSV file in Databricks

Read a CSV file in Databricks

- [Instructor] To read the CSV file, the first thing which we need is the file address. We can copy this address from here, or else, imagine that you don't know this, so what you can do is you can go back to the Catalog tab, go to Browse DBFS and try to locate your file. For example, my file is available here and then I can right-click on this and I can copy the path. So once I copy the path, I can use this path to read the CSV file. Now, let's go back to the workspace and create a new notebook to read the CSV file. Workspace. So either you can right-click here to see an option to create the folders or the notebook, or else, you can also directly click from here +New. Anything would be fine. I'm just using this option Create Notebook. So this notebook get created, I call it Customer-Analysis. Now, the first thing would be is I'm needing a path to read it. So I just keep the path here. Now, you know that whenever we read a file in the Databricks, eventually this will become a…

Contents