# Fast iteration over rows of a DataFrame

**URL:** <https://discourse.julialang.org/t/fast-iteration-over-rows-of-a-dataframe/24612>\
**Category:** Performance\
**Created:** [May 26, 2019, 1:26am UTC](https://discourse.julialang.org/t/fast-iteration-over-rows-of-a-dataframe/24612 "2019-05-26T01:26:32Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Marc.Cox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marc.cox/32/7514_2.png) [@Marc.Cox](https://discourse.julialang.org/u/Marc.Cox)\
**Post date:** [June 30, 2020, 3:20pm UTC](https://discourse.julialang.org/t/fast-iteration-over-rows-of-a-dataframe/24612/15 "2020-06-30T15:20:56Z")

</div>

Hi Rob @robsmith11 and all on this thread - might you have an insight or new approach here ?

So I took up the solution of using `IndexedTables.jl` for _Fast Iterations over rows of a Dataframe_  
here. And then I proceeded to attempt to use IndexedTables for multidimensional 2D,3D (scatter) Plots  
using IndexedTables to graph N-Dimensional data; but ran into issues trying to  
collect the iterable `for iter in eachindex(keys(tab_t1.index.columns))`  
because `tab_t1.index.columns` returns  
`ERROR: LoadError: type IndexedTable has no field index`  
as you’ll see when you run the Julia pseudocode listed here

> [@Looking for ways to generalize using IndexedTables to Plot / Graph N-Dimensional data](https://discourse.julialang.org/t/looking-for-ways-to-generalize-using-indexedtables-to-plot-graph-n-dimensional-data/42266):
>
> Hi All, I’m looking for ways to generalize using IndexedTables to graph N-Dimensional data, but I’m stuck on how to collect the “for iter in eachindex(keys(tab\_t1.index.columns))”. In that regard, would you please see MWE pseudocode snippet below and let me know any suggestions you might have ? using IndexedTables using Plots # 2D = 1Dy Dependent var equation of 1Dx INDependent var tab\_t1 = table( (x=1:5, y=randn(5)); pkey = [:x] ) str\_current\_equation\_approximated = "(x=1:5, y=randn(5))" …

Any new insights or approaches to getting the keys from `tab_t1.index.columns` ;  
-or- another way to automatically graph general multidimensional 2D,3D,(? and 4D like [www.wolframalpha.com](http://www.wolframalpha.com) ?) scatter Plots is appreciated.

TY  
-Marc

---

_[View the full topic](https://discourse.julialang.org/t/fast-iteration-over-rows-of-a-dataframe/24612)._
