Hi all,
I have a dataframe with columns “pp” and “pt”. each row of these columns is a vector and some of the values are 0. I’m trying to find a way to efficiently remove the zeros. I’m using Jupyter Notebooks and Python.
Example of the structure (where 1 stands for just one row of the dataframe):
1 | 5.40445f |
| | 0.339785f |
| | 0.0130158f |
| | 0.00000f
And I want it to be:
1 | 5.40445f |
| | 0.339785f |
| | 0.0130158f |
Ultimately I just want a histogram of pp vs pt but with all the zeros removed.
Thank you!
ROOT Version: JupyROOT 6.30/04
Platform: Jupyter