Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/ggplot.py", line 97, in __repr__
self.__str__()
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/ggplot.py", line 88, in __str__
self.draw(show=True)
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/ggplot.py", line 205, in draw
self._build()
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/ggplot.py", line 300, in _build
layers.compute_statistic(layout)
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/layer.py", line 73, in compute_statistic
l.compute_statistic(layout)
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/layer.py", line 324, in compute_statistic
data = self.stat.compute_layer(data, params, layout)
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/stats/stat.py", line 276, in compute_layer
return groupby_apply(data, 'PANEL', fn)
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/utils.py", line 634, in groupby_apply
lst.append(func(d, *args, **kwargs))
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/stats/stat.py", line 274, in fn
return cls.compute_panel(pdata, pscales, **params)
File "/home/browse/.local/lib/python3.9/site-packages/md_plot/helper/stat_pde_density.py", line 38, in compute_panel
data = super(cls, cls).compute_panel(data, scales, **params)
File "/home/browse/.local/lib/python3.9/site-packages/plotnine/stats/stat.py", line 307, in compute_panel
new = cls.compute_group(old, scales, **params)
File "/home/browse/.local/lib/python3.9/site-packages/md_plot/helper/stat_pde_density.py", line 90, in compute_group
dens = compute_pdedensity(data["y"])
File "/home/browse/.local/lib/python3.9/site-packages/md_plot/helper/stat_pde_density.py", line 73, in compute_pdedensity
dens = pareto_density_estimation(x)
File "/home/browse/.local/lib/python3.9/site-packages/md_plot/helper/pareto_density_estimation.py", line 131, in pareto_density_estimation
kernels.append(minData)
AttributeError: 'numpy.ndarray' object has no attribute 'append'
Removing the last element from the data series makes plot generation succeed.
Removing the last element from the data series makes plot generation succeed.