staircase-dev / staircase

A powerful data analysis package based on mathematical step functions. Strongly aligned with pandas.
https://staircase.dev
MIT License
59 stars 12 forks source link

ENH: Cythonise Stairs.layer #84

Open venaturum opened 2 years ago

venaturum commented 2 years ago

Describe the solution you'd like

The implementation of Stairs.layer requires input vectors to be "grouped by", in case there are repeated values in start and end parameters. This is probably slow for very large datasets. A cython implementation may yield much better results?

venaturum commented 1 year ago

Not sure cythonising will improve efficiency here, but checking for duplicates before performing groupby might be worthwhile