Nixtla / utilsforecast

https://nixtlaverse.nixtla.io/utilsforecast
Apache License 2.0
40 stars 6 forks source link

grouped array enhancements #35

Closed jmoralez closed 10 months ago

jmoralez commented 10 months ago

The GroupedArray class is meant to be inherited by other libs, however, some methods returned an instance of this base class, which would then break if methods from the child classes tried to be used. This makes it so that those methods return the (data, indptr) tuple so that the child classes can then construct their own instances from them.

Also adds support for data to be either 1d or 2d.

review-notebook-app[bot] commented 10 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB