diff --git a/esda/getisord.py b/esda/getisord.py index 9c7e1018..dfac2872 100644 --- a/esda/getisord.py +++ b/esda/getisord.py @@ -6,7 +6,9 @@ import warnings -from libpysal.common import np, stats +import numpy as np +from scipy import stats + from libpysal.weights.spatial_lag import lag_spatial as slag from libpysal.weights.util import fill_diagonal diff --git a/esda/smoothing.py b/esda/smoothing.py index 1cebbd9c..9707afaa 100644 --- a/esda/smoothing.py +++ b/esda/smoothing.py @@ -23,7 +23,10 @@ import warnings from functools import reduce +import numpy as np + from libpysal.cg import ( + KDTree, LineSegment, Point, Ray, @@ -34,7 +37,6 @@ get_points_dist, get_segment_point_dist, ) -from libpysal.common import KDTree, np from libpysal.common import requires as _requires from libpysal.weights.distance import Kernel from libpysal.weights.spatial_lag import lag_spatial as slag