# Process RDataFrame by event category

**URL:** <https://root-forum.cern.ch/t/process-rdataframe-by-event-category/63028>\
**Category:** ROOT\
**Tags:** rdataframe\
**Created:** [February 26, 2025, 5:19pm UTC](https://root-forum.cern.ch/t/process-rdataframe-by-event-category/63028 "2025-02-26T17:19:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mczurylo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mczurylo/32/33269_2.png) [@mczurylo](https://root-forum.cern.ch/u/mczurylo)\
**Post date:** [February 27, 2025, 9:21am UTC](https://root-forum.cern.ch/t/process-rdataframe-by-event-category/63028/2 "2025-02-27T09:21:42Z")

</div>

Hi @leadreyfus,

unfortunately we don’t have a native way of doing GroupBy in RDataFrame yet. Your workaround is probably the best direction to be taken, you can make a custom action out of it - see a similar issue and discussion [here](https://root-forum.cern.ch/t/is-groupby-operation-natively-implemented-in-rdataframe/38354).

Having said that, I would like to add that this is a feature that is requested by users on various occasions and it is on our list of to do items, and with more user requests we will add more priority to this particular item - so thank you for reporting your use case!

Cheers,  
Marta

---

_[View the full topic](https://root-forum.cern.ch/t/process-rdataframe-by-event-category/63028)._
