ing-bank / popmon

Monitor the stability of a Pandas or Spark dataframe ⚙︎
https://popmon.readthedocs.io/
MIT License
495 stars 35 forks source link

Include diptest to profiles #226

Closed sbrugman closed 2 years ago

sbrugman commented 2 years ago

The diptest - test for unimodality - could be included as profile (https://pypi.org/project/diptest/)

With the registry api, this can be achieved by filling the following template

@Profile.register(key=["diptest_val", "p_value"], description=["test for unimodality", "p-value for diptest"])
def diptest(histogram):
   # your magic here
   return coeff, pval

Due to requirement of the package, it could be made optional and picked up when the package is installed in the environment. In setup.py it could be registered as ‘extras’, allowing you to do pip install popmon[diptest]