Python Empirical Distribution Definition