# \#rdataframe

**URL:** https://root-forum.cern.ch/tag/rdataframe/31.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)

---

## [RDataFrame & RNTuple: Why are multiple 1D histograms much slower than two 2D histograms?](https://root-forum.cern.ch/t/rdataframe-rntuple-why-are-multiple-1d-histograms-much-slower-than-two-2d-histograms/65066)

<div class="topic-metadata">

**Author:** [@LeWhoo](https://root-forum.cern.ch/u/LeWhoo)\
**Replies:** 4\
**Last updated:** [November 26, 2026, 5:15pm UTC](https://root-forum.cern.ch/t/rdataframe-rntuple-why-are-multiple-1d-histograms-much-slower-than-two-2d-histograms/65066 "2026-11-26T17:15:59Z")

</div>

I’m analyzing a relatively large RNTuple (~7.1 GB, the corresponding TTree was 16 GB and almost 10 times slower to fill!), written using Uproot with ZSTD(3) compression. It contains scalar trigger parameters and two vari…

---

## [Reading object from file currently processed in RDataFrame](https://root-forum.cern.ch/t/reading-object-from-file-currently-processed-in-rdataframe/63772)

<div class="topic-metadata">

**Author:** [@cgrefe](https://root-forum.cern.ch/u/cgrefe)\
**Replies:** 3\
**Last updated:** [September 17, 2026, 7:20am UTC](https://root-forum.cern.ch/t/reading-object-from-file-currently-processed-in-rdataframe/63772 "2026-09-17T07:20:00Z")

</div>

Hi, I would like to know if it is possible to dynamically access objects from the files currently being processed by the RDataFrame event loop. In particular, I would like to read the bin content of a histogram from the…

---

## [Current root file in RDataframe](https://root-forum.cern.ch/t/current-root-file-in-rdataframe/64994)

<div class="topic-metadata">

**Author:** [@vaubee](https://root-forum.cern.ch/u/vaubee)\
**Replies:** 2\
**Last updated:** [September 17, 2026, 7:16am UTC](https://root-forum.cern.ch/t/current-root-file-in-rdataframe/64994 "2026-09-17T07:16:51Z")

</div>

There is a topic from last year which seems to ask the same question (see below), but it never got a definite answer. Is there any way of knowing the current root file that is being processed in RDataframe? The way our …

---

## [RNTuple: MakeField causes termination of program](https://root-forum.cern.ch/t/rntuple-makefield-causes-termination-of-program/64980)

<div class="topic-metadata">

**Author:** [@vaubee](https://root-forum.cern.ch/u/vaubee)\
**Replies:** 7\
**Last updated:** [August 27, 2026, 8:12pm UTC](https://root-forum.cern.ch/t/rntuple-makefield-causes-termination-of-program/64980 "2026-08-27T20:12:46Z")

</div>

ROOT Version: 6.40.02 I’m trying to use a RNTupleParallelWriter to write a custom class. When I try doing this in the full framework we have (way too big to post here), it fails at the step of calling MakeField\<myClass\>(…

---

## [RDataFrame with arrays of fixed length arrays?](https://root-forum.cern.ch/t/rdataframe-with-arrays-of-fixed-length-arrays/64972)

<div class="topic-metadata">

**Author:** [@mkordosky](https://root-forum.cern.ch/u/mkordosky)\
**Replies:** 1\
**Last updated:** [August 14, 2026, 6:01am UTC](https://root-forum.cern.ch/t/rdataframe-with-arrays-of-fixed-length-arrays/64972 "2026-08-14T06:01:03Z")

</div>

I’m trying to use RDataFrame to analyze an ntuple that has branches that are variable length arrays that hold fixed length arrays (specifically, 4 momenta and vertex position+time). The ntuple is Print()'ed below. I cann…

---

## [TMVA cannot interpret some valid RDataFrame expressions as input variables](https://root-forum.cern.ch/t/tmva-cannot-interpret-some-valid-rdataframe-expressions-as-input-variables/64963)

<div class="topic-metadata">

**Author:** [@araghav](https://root-forum.cern.ch/u/araghav)\
**Replies:** 1\
**Last updated:** [July 31, 2026, 6:26am UTC](https://root-forum.cern.ch/t/tmva-cannot-interpret-some-valid-rdataframe-expressions-as-input-variables/64963 "2026-07-31T06:26:13Z")

</div>

Hi, I am training a BDT using TMVA, and I noticed that some variables defined as RDataFrame expressions cannot be interpreted by TMVA, even though they work correctly within the RDataFrame workflow. For example, I orig…

---

## [Using numba declare for python MVA node processing](https://root-forum.cern.ch/t/using-numba-declare-for-python-mva-node-processing/64899)

<div class="topic-metadata">

**Author:** [@rquaglia](https://root-forum.cern.ch/u/rquaglia)\
**Replies:** 7\
**Last updated:** [July 21, 2026, 7:57am UTC](https://root-forum.cern.ch/t/using-numba-declare-for-python-mva-node-processing/64899 "2026-07-21T07:57:07Z")

</div>

Dear experts I have a question about usage of \_rdfentry as trick suggested in various threads in the forum to interoperate RDataFrame with python modules to attach BDT weights. I have ended up with a code like this in …

---

## [Problems filtering a vector with a scalar](https://root-forum.cern.ch/t/problems-filtering-a-vector-with-a-scalar/64922)

<div class="topic-metadata">

**Author:** [@abirze](https://root-forum.cern.ch/u/abirze)\
**Replies:** 3\
**Last updated:** [July 8, 2026, 4:14pm UTC](https://root-forum.cern.ch/t/problems-filtering-a-vector-with-a-scalar/64922 "2026-07-08T16:14:32Z")

</div>

I’m trying to filter values of a RDFrame, but the elements in the RDFrame are vectors and it seems like i’m trying to do vector to scalar comparison. Been trying to do df\_data.Filter(f'ALL\_hits\_S == {float(section)}') …

---

## [Machine Learning on a Large Dataset using PyTorch: RDataFrame vs. uproot?](https://root-forum.cern.ch/t/machine-learning-on-a-large-dataset-using-pytorch-rdataframe-vs-uproot/53167)

<div class="topic-metadata">

**Author:** [@Sam\_Kelson](https://root-forum.cern.ch/u/Sam_Kelson)\
**Replies:** 4\
**Last updated:** [July 8, 2026, 3:51pm UTC](https://root-forum.cern.ch/t/machine-learning-on-a-large-dataset-using-pytorch-rdataframe-vs-uproot/53167 "2026-07-08T15:51:05Z")

</div>

Is there a general opinion on whether it is more efficient to load data via RDataFrames or uproot directly from ROOT files for machine learning analysis in PyTorch? I have seen discussion on this in multiple areas but mo…

---

## [Setting kEntriesReshuffled when using RDatasetSpec](https://root-forum.cern.ch/t/setting-kentriesreshuffled-when-using-rdatasetspec/64735)

<div class="topic-metadata">

**Author:** [@jamie.gooding](https://root-forum.cern.ch/u/jamie.gooding)\
**Replies:** 7\
**Last updated:** [March 11, 2026, 2:47pm UTC](https://root-forum.cern.ch/t/setting-kentriesreshuffled-when-using-rdatasetspec/64735 "2026-03-11T14:47:20Z")

</div>

Hi all, I’m trying to use RDatasetSpec to create an RDataFrame from a main tree and a friend tree in PyROOT. Since I’m passing the RDF between different python classes/functions, this seems to be the only way to do thi…

---

## [Simplier way to get full statistics of a RVec branch using RDataFrame?](https://root-forum.cern.ch/t/simplier-way-to-get-full-statistics-of-a-rvec-branch-using-rdataframe/64732)

<div class="topic-metadata">

**Author:** [@FoxWise](https://root-forum.cern.ch/u/FoxWise)\
**Replies:** 1\
**Last updated:** [March 4, 2026, 9:45am UTC](https://root-forum.cern.ch/t/simplier-way-to-get-full-statistics-of-a-rvec-branch-using-rdataframe/64732 "2026-03-04T09:45:42Z")

</div>

Hi all, I am currently doing something following: import ROOT import numpy as np import scipy df = ROOT.RDataFrame(10000000) coordDefineCode = ''' ROOT::RVecD {0}(len); std::transform({0}.begin(), {0}.end(), {…

---

## [Filtering branches from a large root file fails in 6.32](https://root-forum.cern.ch/t/filtering-branches-from-a-large-root-file-fails-in-6-32/64723)

<div class="topic-metadata">

**Author:** [@Heidi\_M\_Schellman](https://root-forum.cern.ch/u/Heidi_M_Schellman)\
**Replies:** 4\
**Last updated:** [March 3, 2026, 7:10pm UTC](https://root-forum.cern.ch/t/filtering-branches-from-a-large-root-file-fails-in-6-32/64723 "2026-03-03T19:10:22Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.32.10 Platform: OSX Compiler: 16.4 (apple silicon) I am trying to filter branches from a large file as part of our open data pr…

---

## [RDataFrame and suitability for rapid iterative passes through datasets](https://root-forum.cern.ch/t/rdataframe-and-suitability-for-rapid-iterative-passes-through-datasets/64711)

<div class="topic-metadata">

**Author:** [@Charlotte-Knight](https://root-forum.cern.ch/u/Charlotte-Knight)\
**Replies:** 8\
**Last updated:** [February 24, 2026, 2:04pm UTC](https://root-forum.cern.ch/t/rdataframe-and-suitability-for-rapid-iterative-passes-through-datasets/64711 "2026-02-24T14:04:13Z")

</div>

ROOT Version: 6.36.02 Platform: linuxx8664gcc Compiler: g++ (GCC) 15.1.0 Hi, I’m a new developer for MaCh3, which is one of the MCMC tools that is used by a variety of neutrino oscillation experiments. A crucial par…

---

## [Setting default value for column of type Char\_t](https://root-forum.cern.ch/t/setting-default-value-for-column-of-type-char-t/64693)

<div class="topic-metadata">

**Author:** [@kahaeuss](https://root-forum.cern.ch/u/kahaeuss)\
**Replies:** 1\
**Last updated:** [February 10, 2026, 8:45pm UTC](https://root-forum.cern.ch/t/setting-default-value-for-column-of-type-char-t/64693 "2026-02-10T20:45:45Z")

</div>

B.root (5.3 KB) A.root (5.3 KB) Hi everyone, I’m having some problems setting a default value for a column of type Char\_t. I have two root files with trees, which I load into a dataframe. The first file contains a b…

---

## [ROOT Advanced Course, 25th March 2026](https://root-forum.cern.ch/t/root-advanced-course-25th-march-2026/64631)

<div class="topic-metadata">

**Author:** [@mczurylo](https://root-forum.cern.ch/u/mczurylo)\
**Replies:** 0\
**Last updated:** [February 5, 2026, 9:16am UTC](https://root-forum.cern.ch/t/root-advanced-course-25th-march-2026/64631 "2026-02-05T09:16:32Z")

</div>

Dear All, The ROOT team would like to invite you to the ROOT Advanced Course taking place on the 25th March at CERN (please note that the event is in person only). The course will focus on some of the more advanced fea…

---

## [Use of ROOT macro based on RDF on CERN LXBATCH: data access issue when MT is enabled but inhibited by Condor](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601)

<div class="topic-metadata">

**Author:** [@andrea.celentano](https://root-forum.cern.ch/u/andrea.celentano)\
**Replies:** 2\
**Last updated:** [January 22, 2026, 8:25am UTC](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601 "2026-01-22T08:25:33Z")

</div>

Dear colleagues, I’d like to report on an unexpected issue that I observed using the LXBATCH system at CERN to execute a job in which a root macro, based on RDF , is executed on a ROOT File. The macro contains the foll…

---

## [TGraph.Fit() usage with EnableImplicitMT(). Is TGraph.Fit() thread-safe?](https://root-forum.cern.ch/t/tgraph-fit-usage-with-enableimplicitmt-is-tgraph-fit-thread-safe/64541)

<div class="topic-metadata">

**Author:** [@FoxWise](https://root-forum.cern.ch/u/FoxWise)\
**Replies:** 2\
**Last updated:** [January 16, 2026, 10:39am UTC](https://root-forum.cern.ch/t/tgraph-fit-usage-with-enableimplicitmt-is-tgraph-fit-thread-safe/64541 "2026-01-16T10:39:20Z")

</div>

Describe the bug Running TGraph.Fit() with EnableImplicitMT() produces results that are not reproducible run-to-run. Expected behavior I expect that running TGraph.Fit() on the identical data, should produce identical …

---

## [Value\_counts in RDataFrame](https://root-forum.cern.ch/t/value-counts-in-rdataframe/64549)

<div class="topic-metadata">

**Author:** [@lidia](https://root-forum.cern.ch/u/lidia)\
**Replies:** 2\
**Last updated:** [December 25, 2025, 10:06am UTC](https://root-forum.cern.ch/t/value-counts-in-rdataframe/64549 "2025-12-25T10:06:44Z")

</div>

Dear experts, I am trying to implement something analogue to what value\_counts() does in pandas with RDataFrame. I have found this previous entry where they ask for precisely this: I have one minor question: Is there…

---

## [Failed to load library C:\\root\\bin\\libROOTDataFrame.dll on Windows 10](https://root-forum.cern.ch/t/failed-to-load-library-c-root-bin-librootdataframe-dll-on-windows-10/64499)

<div class="topic-metadata">

**Author:** [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Replies:** 8\
**Last updated:** [December 9, 2025, 3:19pm UTC](https://root-forum.cern.ch/t/failed-to-load-library-c-root-bin-librootdataframe-dll-on-windows-10/64499 "2025-12-09T15:19:50Z")

</div>

Describe the bug Cannot create RDataFrame instance using pre-compiled binary distribution of ROOT for Windows. Expected behavior Successful creation of RDataFrame instance. To Reproduce Launch Visual Studio 2022 Develo…

---

## [RDataFrame seems too conservative about spawning new threads](https://root-forum.cern.ch/t/rdataframe-seems-too-conservative-about-spawning-new-threads/64489)

<div class="topic-metadata">

**Author:** [@karuboniru](https://root-forum.cern.ch/u/karuboniru)\
**Replies:** 7\
**Last updated:** [November 29, 2025, 3:24pm UTC](https://root-forum.cern.ch/t/rdataframe-seems-too-conservative-about-spawning-new-threads/64489 "2025-11-29T15:24:47Z")

</div>

I’m using RDataFrame to build a data analysis chain, and each event requires a very time-consuming kinematic fit. In this situation, having more threads available would significantly improve overall performance. However…

---

## [How to use a RNode to define colums in another RNode](https://root-forum.cern.ch/t/how-to-use-a-rnode-to-define-colums-in-another-rnode/64417)

<div class="topic-metadata">

**Author:** [@rquaglia](https://root-forum.cern.ch/u/rquaglia)\
**Replies:** 2\
**Last updated:** [November 20, 2025, 6:27am UTC](https://root-forum.cern.ch/t/how-to-use-a-rnode-to-define-colums-in-another-rnode/64417 "2025-11-20T06:27:09Z")

</div>

Dear experts, I have a problem i would like to solve in a nicer way than i used to do in the past. I have the following setup: df1 = ROOT.RDataFrame("myTupleA", files) df2 = ROOT.RDataFrame("myTupleB", files) e.g. bo…

---

## [Proper handling of custom classes implementing a Fill method with RDataFrames](https://root-forum.cern.ch/t/proper-handling-of-custom-classes-implementing-a-fill-method-with-rdataframes/64406)

<div class="topic-metadata">

**Author:** [@asopio](https://root-forum.cern.ch/u/asopio)\
**Replies:** 1\
**Last updated:** [November 14, 2025, 12:35pm UTC](https://root-forum.cern.ch/t/proper-handling-of-custom-classes-implementing-a-fill-method-with-rdataframes/64406 "2025-11-14T12:35:12Z")

</div>

Dear ROOT experts, I have a question concerning the design philosophy of custom object fills using RDataFrames. I have a program which I have adapted from sinlge-threaded TTree loop to an RDataFrame graph with implicit…

---

## [How can we mock data?](https://root-forum.cern.ch/t/how-can-we-mock-data/64379)

<div class="topic-metadata">

**Author:** [@curious\_goose](https://root-forum.cern.ch/u/curious_goose)\
**Replies:** 5\
**Last updated:** [November 14, 2025, 3:11am UTC](https://root-forum.cern.ch/t/how-can-we-mock-data/64379 "2025-11-14T03:11:21Z")

</div>

Hello, Sometimes we need to patch our data. For example, we have a simulated sample for 2016 but not the one for 2017. If we want to do a quick study and 2017 simulation is good enough, we would like to do something lik…

---

## [Documentation on bitmap for RDataFrame Snapshot with variations](https://root-forum.cern.ch/t/documentation-on-bitmap-for-rdataframe-snapshot-with-variations/64397)

<div class="topic-metadata">

**Author:** [@rcoelhob](https://root-forum.cern.ch/u/rcoelhob)\
**Replies:** 3\
**Last updated:** [November 13, 2025, 6:22pm UTC](https://root-forum.cern.ch/t/documentation-on-bitmap-for-rdataframe-snapshot-with-variations/64397 "2025-11-13T18:22:24Z")

</div>

Hello all. When saving an RDF Snapshot with variations, there’s a “bitmask for each event, indicating which variations are valid”. Unfortunately, it’s not really documented anywhere how the bitmask maps to the nominal…

---

## [pyROOT possible bug in interaction of XRootD and RDataFrame](https://root-forum.cern.ch/t/pyroot-possible-bug-in-interaction-of-xrootd-and-rdataframe/64389)

<div class="topic-metadata">

**Author:** [@rquaglia](https://root-forum.cern.ch/u/rquaglia)\
**Replies:** 4\
**Last updated:** [November 12, 2025, 11:01pm UTC](https://root-forum.cern.ch/t/pyroot-possible-bug-in-interaction-of-xrootd-and-rdataframe/64389 "2025-11-12T23:01:55Z")

</div>

Dear experts, I would like to report an issue observed which might or might not be related to some ROOT or XRootD bug in some special use case in python. Here you can find a reproducer of the issue: import ROOT as r f…

---

## [Memory reduction when loading ROOT RDataFrame in python](https://root-forum.cern.ch/t/memory-reduction-when-loading-root-rdataframe-in-python/64395)

<div class="topic-metadata">

**Author:** [@tancredi](https://root-forum.cern.ch/u/tancredi)\
**Replies:** 4\
**Last updated:** [November 12, 2025, 8:38pm UTC](https://root-forum.cern.ch/t/memory-reduction-when-loading-root-rdataframe-in-python/64395 "2025-11-12T20:38:30Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: lxplus \*Compiler:\*gcc 13.1 When working with python and RDataFrame one often has the problem that a la…

---

## [Root RDF Weighted histograms non sensible](https://root-forum.cern.ch/t/root-rdf-weighted-histograms-non-sensible/64349)

<div class="topic-metadata">

**Author:** [@Jordy\_Degens](https://root-forum.cern.ch/u/Jordy_Degens)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 1:09pm UTC](https://root-forum.cern.ch/t/root-rdf-weighted-histograms-non-sensible/64349 "2025-10-23T13:09:55Z")

</div>

Dear experts, I am seeing weird behavior when running my RDF code while created weighted histograms. In our analysis we create weighted cutflows by basically creating a histogram after each Filter we apply. Which looks …

---

## [Delphes root files and RDataFrame](https://root-forum.cern.ch/t/delphes-root-files-and-rdataframe/64329)

<div class="topic-metadata">

**Author:** [@ammelsayed](https://root-forum.cern.ch/u/ammelsayed)\
**Replies:** 7\
**Last updated:** [October 20, 2025, 6:14am UTC](https://root-forum.cern.ch/t/delphes-root-files-and-rdataframe/64329 "2025-10-20T06:14:03Z")

</div>

Hi, I’m trying to preform some analysis cuts using RDataFrame from root files generated by Delphes. But I seem to encounter a problem with reading particles data from arrays. As i understand, in a delphes file, an even…

---

## [Bool branch becomes python object with RDataFrame.AsNumpy()](https://root-forum.cern.ch/t/bool-branch-becomes-python-object-with-rdataframe-asnumpy/64305)

<div class="topic-metadata">

**Author:** [@fbetti](https://root-forum.cern.ch/u/fbetti)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 8:41am UTC](https://root-forum.cern.ch/t/bool-branch-becomes-python-object-with-rdataframe-asnumpy/64305 "2025-10-13T08:41:40Z")

</div>

ROOT Version: 6.36.04 Platform: macosxarm64 Compiler: Apple clang version 17.0.0 (clang-1700.0.13.3) Python Version: 3.13.7 Hi all, I see some unexpected behaviour when creating a NumPy arrays dictionary from a RD…

---

## [Multithread RDataFrame.Snapshot with big files and lots of columns](https://root-forum.cern.ch/t/multithread-rdataframe-snapshot-with-big-files-and-lots-of-columns/64155)

<div class="topic-metadata">

**Author:** [@martialc](https://root-forum.cern.ch/u/martialc)\
**Replies:** 11\
**Last updated:** [October 10, 2025, 9:05am UTC](https://root-forum.cern.ch/t/multithread-rdataframe-snapshot-with-big-files-and-lots-of-columns/64155 "2025-10-10T09:05:23Z")

</div>

ROOT Version: 6.32.11 Python Version: 3.9.14 Platform: AlmaLinux 9 (el9\_amd64\_gcc12) Compiler: g++ (GCC) 12.3.1 20230527 Hi, all! I’ve happened to stumble upon a strange error while saving large RDataFrames to dis…

[Next page](https://root-forum.cern.ch/tag/rdataframe/31.md?match_all_tags=true&page=1&tags%5B%5D=rdataframe)
