mansenfranzen / pywrangler

Advanced data wrangling for python
https://github.com/mansenfranzen/pywrangler
MIT License
11 stars 4 forks source link

Feature interval identfier #2

Closed mansenfranzen closed 5 years ago

mansenfranzen commented 5 years ago

Add interface and pandas implementations for IntervalIdentifier wrangler:

An interval is defined as a range of values beginning with an opening marker and ending with a closing marker (e.g. the interval daylight may be defined as all events/values occurring between sunrise and sunset).

The interval identification wrangler assigns ids to values such that values belonging to the same interval share the same interval id. For example, all values of the first daylight interval are assigned with id 1. All values of the second daylight interval will be assigned with id 2 and so on.

TODO: