The documentation of vars.num.quantiles does not imply such a requirement:
vars.num.quantiles: "The quantiles to calculate. Note that .25, .5 and .75 are required for other metrics median and IQR."
Additional comments
The widgets/HTML rendered report does not show additional user-defined quantiles. They are included in the json export. Nevertheless, it would be desirable to include the user-defined quantiles in the widgets/HTML reports.
I would suggest to remove the requirement that the user makes sure to pass 0.25, 0.5, 0.75 and instead compute them internally by default to be able to always compute median and IQR irrespective of user input.
Error
running it with vars={'num': {'quantiles': [0.01, 0.25, 0.5, 0.75, 0.99]}}:
Describe the bug
Profiling breaks if the list of values for
vars.num.quantiles
does not include the five default values ([0.05,0.25,0.5,0.75,0.95]
) because of how reports are coded, https://github.com/pandas-profiling/pandas-profiling/blob/develop/src/pandas_profiling/report/structure/variables/render_real.py#L126-L133The documentation of
vars.num.quantiles
does not imply such a requirement:Additional comments
0.25, 0.5, 0.75
and instead compute them internally by default to be able to always compute median and IQR irrespective of user input.Error
running it with
vars={'num': {'quantiles': [0.01, 0.25, 0.5, 0.75, 0.99]}}
:To Reproduce
Data: It fails on any float column
Code: Preferably, use this code format:
Version information: