Hi, I am working with an RDataFrame in pyROOT that is too big to convert into pandas, In general I am okay working with them, but there are some simple operations that I am unable to perform or find a tutorial, or info on how to apply them. They are:
-
I want to occasionally convert to Numpy just to see how it looks and visualise better. For this I want to convert only a single row of my RDataFrame. How do I access this? RDataFrame[0] does not work, nor RDataFrame.Filter(“Row == 0”).
-
I have some array<int,n>'s in my dataframe, when using the Sum() command, I am getting a single int as the sum. I want the output of GetValue() to be a vector that is the sum of each individual entry in the array. Can I user define a function to be used for Sum()?
-
Can I drop some columns, I will only need some at a time, being able to drop some columns would be useful for me. Searching “Drop” in the RDataFrame documentation offers no hits.
Any advice appreciated thanks
__
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided