# Grouping consecutive sick days

**URL:** https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133
**Category:** Data
**Tags:** dates, dataframes
**Created:** [October 3, 2021, 9:06am UTC](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133 "2021-10-03T09:06:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)
#### Post date: [October 5, 2021, 12:26am UTC](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133/2 "2021-10-05T00:26:49Z")

</div>

There is a nice technique I learned from @bkamins here: [Creating User-Defined Grouped DataFrames](https://discourse.julialang.org/t/creating-user-defined-grouped-dataframes/64387) That might work well for your particular use case. In my linked post, basically, you group by creating a “dummy” column that groups based on how you want the grouping logic defined. This might be a more concise approach to your solution. Hope it helps!

---

_[View the full topic](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133)._
