stockparfait / experiments

Statistical experiments with financial data
Apache License 2.0
0 stars 0 forks source link

PlotDistribution crashes with no data #136

Open sergey-a-berezin opened 1 year ago

sergey-a-berezin commented 1 year ago

When "plot mean" or "percentiles" are specified, experiments.PlotDistribution crashes with an error or panic, respectively, when the input histogram contains no data.

Instead, something should be reported to the user that there is no data, and no attempt should be made to plot or compute any statistics.