# ProgressMeter while using DataFrame commands?

**URL:** <https://discourse.julialang.org/t/progressmeter-while-using-dataframe-commands/65405>\
**Category:** Performance\
**Tags:** performance, dataframes\
**Created:** [July 27, 2021, 10:24pm UTC](https://discourse.julialang.org/t/progressmeter-while-using-dataframe-commands/65405 "2021-07-27T22:24:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joonp](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@joonp](https://discourse.julialang.org/u/joonp)\
**Post date:** [July 27, 2021, 10:24pm UTC](https://discourse.julialang.org/t/progressmeter-while-using-dataframe-commands/65405/1 "2021-07-27T22:24:32Z")

</div>

Hi,

I have a code chunk that uses DataFrame `groupby()` and `combine()` and that requires heavy computation for each group. I would like to see its progress such as out of `n` groups… how many groups have finished the computation currently.

I found a couple of potential options to do so such as `ProgressMeter` or `@info`.  
However, it seems that many tutorials for those options are based on a for-loop approach or functions like `map`.

Below is a simple code that counts the number of observations by group `gr`.  
I wonder if there is a way to display some sort of progress of the DataFrame `combine()` command in that code.

```julia
df = DataFrame(gr = rand(1:10, 100000))
@chain df begin
  groupby(:gr)
  combine(nrow)
end

```

Thanks!

---

<div class="post-metadata">

**Author:** ![bicepjai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bicepjai/32/18158_2.png) [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Post date:** [June 7, 2022, 6:34pm UTC](https://discourse.julialang.org/t/progressmeter-while-using-dataframe-commands/65405/2 "2022-06-07T18:34:18Z")

</div>

@tkf can you help with this question.  
tagging you after i saw your answer on [https://discourse.julialang.org/t/help-with-progressmeter/31143t](https://discourse.julialang.org/t/help-with-progressmeter/31143t)

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [June 7, 2022, 6:38pm UTC](https://discourse.julialang.org/t/progressmeter-while-using-dataframe-commands/65405/3 "2022-06-07T18:38:09Z")

</div>

I wonder if you could re-define the `combine` function but with `ProgressMeter` code (or using channels).
