# \#feature

**URL:** https://root-forum.cern.ch/tag/feature/14.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Shuffle RDataFrame?](https://root-forum.cern.ch/t/shuffle-rdataframe/52062)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 2:08pm UTC](https://root-forum.cern.ch/t/shuffle-rdataframe/52062 "2022-10-26T14:08:37Z")

</div>

Continuing the discussion from Use RDataFrame to produce small training set: I would like to randomly select a defined number of rows from my RDataFrame (a la pandas.DataFrame.sample). Is there yet a way to do this? The…

---

## [Cling startup scripts support](https://root-forum.cern.ch/t/cling-startup-scripts-support/51358)

<div class="topic-metadata">

**Author:** [@jiangyilism](https://root-forum.cern.ch/u/jiangyilism)\
**Replies:** 2\
**Last updated:** [August 29, 2022, 8:56am UTC](https://root-forum.cern.ch/t/cling-startup-scripts-support/51358 "2022-08-29T08:56:15Z")

</div>

Many interpreters support startup script being executed before command prompt. I propose to add the following features similar to python ($PYTHONSTARTUP), bash(.bashrc, .bash\_profile), zsh (.zprofile, .zshrc) : If th…

---

## [Groupby in RDataFrame](https://root-forum.cern.ch/t/groupby-in-rdataframe/50303)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 4\
**Last updated:** [June 9, 2022, 7:52am UTC](https://root-forum.cern.ch/t/groupby-in-rdataframe/50303 "2022-06-09T07:52:37Z")

</div>

These days, I do almost all of my analysis using RDataFrame in pyROOT, which is, overall, a very robust and easy-to-use framework. After many many hours with it, my biggest complaint is the lack of groupby capability, wh…

---

## [TGraphAsymmErrors::Divide skips bins](https://root-forum.cern.ch/t/tgraphasymmerrors-divide-skips-bins/49314)

<div class="topic-metadata">

**Author:** [@bfontana](https://root-forum.cern.ch/u/bfontana)\
**Replies:** 4\
**Last updated:** [March 23, 2022, 10:32am UTC](https://root-forum.cern.ch/t/tgraphasymmerrors-divide-skips-bins/49314 "2022-03-23T10:32:15Z")

</div>

As described in TGraphAsymmErrors::Divide method: If the denominator becomes 0 or pass \> total, the corresponding bin is skipped. While an efficiency does not indeed make sense when the denominator is zero, silently …

---

## [Slope from the function "bigaus"](https://root-forum.cern.ch/t/slope-from-the-function-bigaus/46877)

<div class="topic-metadata">

**Author:** [@caforioroot](https://root-forum.cern.ch/u/caforioroot)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 4:28pm UTC](https://root-forum.cern.ch/t/slope-from-the-function-bigaus/46877 "2021-10-12T16:28:17Z")

</div>

Hello, I have an ellipse-shaped distribution in a 2D histogram that I want to fit with the “bigaus” function. The fit works very well, but I need the slope of the resulting function: is there a way to get this paramete…

---

## [Friend support within RDataFrame class](https://root-forum.cern.ch/t/friend-support-within-rdataframe-class/40048)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 3:55pm UTC](https://root-forum.cern.ch/t/friend-support-within-rdataframe-class/40048 "2020-06-23T15:55:54Z")

</div>

It would be nice to be able to add an RDataFrame as a friend to another RDataFrame instead of having to use TTree first to handle friends. Usage example follows. Suppose I apply a selection fitSel, do a fit, and extrac…

---

## [No way to overwrite using Snapshot](https://root-forum.cern.ch/t/no-way-to-overwrite-using-snapshot/37936)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 1\
**Last updated:** [February 12, 2020, 9:00am UTC](https://root-forum.cern.ch/t/no-way-to-overwrite-using-snapshot/37936 "2020-02-12T09:00:56Z")

</div>

There is currently no way to overwrite existing output using Snapshot and one ends up with multiple cycles: In \[10\]: f.hi.ls() TDirectoryFile\* hi hi KEY: TTree there;2 there KEY: TTree there;1 there I have made a pu…

---

## [getRange for RooRealVar](https://root-forum.cern.ch/t/getrange-for-roorealvar/33982)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 5:28pm UTC](https://root-forum.cern.ch/t/getrange-for-roorealvar/33982 "2019-05-10T17:28:38Z")

</div>

I would like to be able to call getRange or getMin or getMax on a RooRealVar just as I can call setRange, setMin, and setMax. As far as I can tell, RooRealVar has no such member.
