# Plotting one column of a csv file

**URL:** https://discourse.julialang.org/t/plotting-one-column-of-a-csv-file/44150
**Category:** General Usage
**Created:** [August 2, 2020, 8:02pm UTC](https://discourse.julialang.org/t/plotting-one-column-of-a-csv-file/44150 "2020-08-02T20:02:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [August 2, 2020, 8:02pm UTC](https://discourse.julialang.org/t/plotting-one-column-of-a-csv-file/44150/1 "2020-08-02T20:02:49Z")

</div>

I know this will show me as dumb as a warthog. Not as an ox as our @oxinabox is very smart.  
I am experimenting with Pluto.jl - which is great!  
I have a CSV file with a header row. I Can select one column using the string in the header. So far so good. But I get a series of CSV.Row types when I do this.  
Is there a nice way to read a column from a CSV and get it into an array which I can plot?

---

<div class="post-metadata">

### Author: ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)
#### Post date: [August 2, 2020, 8:21pm UTC](https://discourse.julialang.org/t/plotting-one-column-of-a-csv-file/44150/2 "2020-08-02T20:21:06Z")

</div>

With `CSV.File` you can pipe it into any Tables.jl sink I think, eg.

```julia
df = CSV.File(myfile) |> DataFrame

```

then you can just pick the column that you want.

Alternatively, I believe `CSV.File` has a `select` keyword that might help you get just one column.
