move numpy import
"""
-
+Non-cython methods for getting counts and distributions from data.
"""
+import numpy as np
+
try: # cython
from .pycounts import counts_from_data, distribution_from_data
@@ -12,8 +14,6 @@ except ImportError: # no cython
from collections import Counter, defaultdict
from itertools import product
- import numpy as np
-
from .. import modify_outcomes
from ..exceptions import ditException
