empiricaldist Python library that represents empirical distribution functions. To see an example, you can read this notebook or run it on Binder.