I’m trying to swap the names of several columns in an RDataFrame to make the data consistent with the format that is expected by another script as the branch prefixes are defined the other way around. My first guess was to try
Hi Chris,
the only way to do it currently is with the extra step that you describe, a temporary dataset that prevents name clashes. Indeed ROOT-10165 will fix this.
Instead of writing an intermediate file you could also save an intermediate dataset to RAM with Cache (equivalent of Snapshot but keeps everything in-memory) – if data fits in RAM.