# Mean of multiple DataFrames

**URL:** https://discourse.julialang.org/t/mean-of-multiple-dataframes/54983
**Category:** New to Julia
**Tags:** dataframes
**Created:** [February 10, 2021, 11:30am UTC](https://discourse.julialang.org/t/mean-of-multiple-dataframes/54983 "2021-02-10T11:30:14Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [April 17, 2022, 7:58am UTC](https://discourse.julialang.org/t/mean-of-multiple-dataframes/54983/10 "2022-04-17T07:58:51Z")

</div>

Nice.  
An alternative to the 3rd dimension could be to [use this tip](https://discourse.julialang.org/t/broadcasting-with-vectors-of-static-vectors/12693/2) to use a tuple shield to broadcast over the array of matrices:

```julia
using DataFrames, Statistics
dfn = [DataFrame(i*ones(4,3),:auto) for i in 1:4] 
m₀, = mean.((map(Matrix, dfn),))
σₘ, = std.((map(Matrix, dfn),))

```

---

_[View the full topic](https://discourse.julialang.org/t/mean-of-multiple-dataframes/54983)._
