Skip to content

[DF] Display should list all elements of a collection by default, like TTree::Scan #6981

@eguiraud

Description

@eguiraud

Explain what you would like to see improved

From Andrea Rizzi: currently df.Display() only shows the first and last elements of collection columns. It would be more helpful/intuitive if all elements were listed, at least up to a reasonable collection length.

Example of the current output:

y           | x   | w         | z                        | 
100         | 1   | 1.8000000 | { 1.1000000, 2.1000000 } | 
            | ... |           | ...                      | 
            | 4   |           | { 3.1000000, 4.1000000 } | 
10000       | 5   | 3.2400000 | { 4.5100000, 5.5100000 } | 
            | ... |           | ...                      | 
            | 8   |           | { 6.5100000, 7.5100000 } | 
1000000     | 9   | 5.8320000 | { 8.2610000, 9.2610000 } | 
            | ... |           | ...                      | 
            | 12  |           | { 10.261000, 11.261000 } | 
100000000   | 13  | 10.497600 | { 12.387100, 13.387100 } | 
            | ... |           | ...                      | 
            | 16  |           | { 14.387100, 15.387100 } | 
10000000000 | 17  | 18.895680 | { 16.925810, 17.925810 } | 
            | ... |           | ...                      | 
            | 20  |           | { 18.925810, 19.925810 } | 

To Reproduce

$ python $(root-config --tutdir)/dataframe/df024_Display.py

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions