# \#grouped-data

**URL:** https://discourse.julialang.org/tag/grouped-data/1271.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Create grouped dataframe by properties of a given column?](https://discourse.julialang.org/t/create-grouped-dataframe-by-properties-of-a-given-column/113360)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 9\
**Last updated:** [April 26, 2024, 3:26pm UTC](https://discourse.julialang.org/t/create-grouped-dataframe-by-properties-of-a-given-column/113360 "2024-04-26T15:26:38Z")

</div>

Hi just wondering if there a way to group a DataFrame by properties within a column. E.g. Suppose julia\> df = DataFrame(date = Date(2024,3,25): Day(1):Date(2024,4,5)) 12×1 DataFrame Row │ date │ Date …

---

## [How to improve code to compute the mean of values grouped by DateTime?](https://discourse.julialang.org/t/how-to-improve-code-to-compute-the-mean-of-values-grouped-by-datetime/106235)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 7\
**Last updated:** [November 15, 2023, 11:27pm UTC](https://discourse.julialang.org/t/how-to-improve-code-to-compute-the-mean-of-values-grouped-by-datetime/106235 "2023-11-15T23:27:37Z")

</div>

I have written the piece of code below. It takes a vector of DateTime, a vector of Float64, and an integer g as input to calculate the mean of the the type Float64 by grouped DateTime type given time granularity g. In t…

---

## [Create a GroupedDataFrame by the relations of rows rather than the values of the rows in a column, e.g \`groupby\` consecutive dates?](https://discourse.julialang.org/t/create-a-groupeddataframe-by-the-relations-of-rows-rather-than-the-values-of-the-rows-in-a-column-e-g-groupby-consecutive-dates/96493)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 14\
**Last updated:** [March 29, 2023, 6:02am UTC](https://discourse.julialang.org/t/create-a-groupeddataframe-by-the-relations-of-rows-rather-than-the-values-of-the-rows-in-a-column-e-g-groupby-consecutive-dates/96493 "2023-03-29T06:02:02Z")

</div>

Hi! hope all is well. Suppose there is the following DataFrame dr = collect(Date(2023,1,1):Day(1):Date(2023,1,10)); df = DataFrame(data = rand((1:10),7), dates=rand(dr,7)); sort!(df, :dates, rev = true) 7×2 DataF…

---

## [Grouped Data Frames](https://discourse.julialang.org/t/grouped-data-frames/94116)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 8\
**Last updated:** [February 7, 2023, 8:59am UTC](https://discourse.julialang.org/t/grouped-data-frames/94116 "2023-02-07T08:59:01Z")

</div>

I find querying a JuliaDB IndexedTable is 20% faster than a DataFrame. But selecting a group from a GroupedDataFrame (GDF) is 200 times faster. So I’d like to work more with GDFs. I notice New columns in the und…
