Introduction

In this article, we will see how to read in csv data in julia.

Install CSV package

We will be using a package called CSV to read in csv data into julia. We need to first install CSV first. To install or use a new julia package, you first need to tell julia explicitly to use the package manager Pkg like this.

using Pkg

Next, we install CSV package.

Pkg.add("CSV")

Importing or reading in CSV Data into julia

using CSV

df = CSV.read("data.csv")

This is how it looks like in julia console. Data Output