# Frustrated using DataFrames

**URL:** <https://discourse.julialang.org/t/frustrated-using-dataframes/67833>\
**Category:** New to Julia\
**Tags:** dataframes, data\_structures\
**Created:** [September 7, 2021, 9:38pm UTC](https://discourse.julialang.org/t/frustrated-using-dataframes/67833 "2021-09-07T21:38:10Z")\
**Posts on this page:** 1\
**Showing post:** 73

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [September 9, 2021, 3:36pm UTC](https://discourse.julialang.org/t/frustrated-using-dataframes/67833/73 "2021-09-09T15:36:22Z")

</div>

I also want to stress that with the `@aside` macro, you can do this kind of loop _inside_ the `@chain` block. This is something you can’t do in `dplyr`, and is probably the cause of some of it’s more complicated all-in-one-call syntaxes.

```julia
julia> using DataFramesMeta;

julia> df = DataFrame(rand(20, 10), :auto);

julia> @chain df begin 
           @rtransform :y = :x1 + :x2
           @aside begin 
               nms = names(df, Between(:x5, :x9))
               for n in nms
                   @rtransform! _ $n = $n + 100
               end
               _
           end
           @rtransform :z = :x8 + :x9
       end

```

---

_[View the full topic](https://discourse.julialang.org/t/frustrated-using-dataframes/67833)._
