Data frame profiles tutorial clarification

Dear expert,
I have a question about the profiles tutorial using RDF

https://root.cern.ch/doc/master/df003__profiles_8py.html

I am struggling to understand how it can work without passing the X,Y column names in the Profile1D and Profile2D call
Does the method work because there are only 3 columns in the data frame?
Maybe worth to add the “px”,“py” in the script?

Cheers
Renato

I think reading the doxygen I understood that it auto load the first columns it sees. Tough maybe for a tutorial it would be good to have the column names passed as argument

Hi @RENATO_QUAGLIANI ,

that tutorial is using a lesser-known RDF feature, the default column list. But it’s unnecessarily confusing, so I opened a PR to remove the usage of that feature and instead specify the column names explicitly when we call Profile.

Cheers,
Enrico

1 Like