From the course: Grasshopper: Tips, Tricks, and Techniques

Unlock this course with a free trial

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

Reading CSV

Reading CSV

- [Presenter] Hello and welcome. In this video, I want to show the process for reading in a CSV file and doing something useful with it. CSVs are a common way to store data basically an Excel file, but a little simpler in its structure a little more universally accessible. And the data I'm using is this hurricane's file, which is downloaded from this URL, just some open source sample data. And you want to make sure that this location is actually the location of the file in your computer. This is the location on my computer. So to read this in, the first thing I want to do is actually go to params input, read file, and I hook up the location of the file, I can also use the primitive file path to find the file on my computer. Now, usually in a CSV file, the first row is going to be the names of the columns. So let's see what that looks like if I go to sets this item and get the first item. And actually in this…

Contents