# Help with CSV and Dataframe

**URL:** <https://discourse.julialang.org/t/help-with-csv-and-dataframe/53930>\
**Category:** Data\
**Tags:** question, package\
**Created:** [January 25, 2021, 8:47pm UTC](https://discourse.julialang.org/t/help-with-csv-and-dataframe/53930 "2021-01-25T20:47:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [January 25, 2021, 9:15pm UTC](https://discourse.julialang.org/t/help-with-csv-and-dataframe/53930/2 "2021-01-25T21:15:07Z")

</div>

I’ve moved this to `Data` because it isn’t related to JuMP.

Again, please read [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) and provide the full text of the error you encounter.

In your code

```nohighlight
for jump_vars in CSV.File("file.csv")
    Result[c,:resultvariable] = JuMP.getvalue(jump_vars[c])
end

```

`c` is a JuMP variable, so it doesn’t makes sense to index a data frame by a JuMP variable.

---

_[View the full topic](https://discourse.julialang.org/t/help-with-csv-and-dataframe/53930)._
