Hi @Patrick_Wu ,
RDataFrame won’t read nor do anything with branch0 if you don’t ask it to, i.e. RDF ignores branch0 by default. Then again, of course if asked whether branch0 exists in the dataset it will say “yes”.
What are you trying to do exactly? E.g. do you want to Snapshot all branches into a new file except that one?
Cheers,
Enrico
Alright, the best way to do that is to use Redefine: df.Redefine("branch0", some_expression).
Redefine is currently only available in ROOT master and in our nightly builds, but it will soon be released in v6.26 (next month most likely).
With older ROOT versions there is really no good workaround I’m afraid. You are forced to use a different name for the Define’d branch or to create a new dataset that’s a copy of your original dataset that does not contain “branch0”.