Skip to content

Commit f67dd75

Browse files
committed
remove warning for statsmodels.tools.rank
1 parent c76dc79 commit f67dd75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/stats/tests/test_ols.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def checkOLS(self, exog, endog, x, y):
175175
_check_non_raw_results(result)
176176

177177
def checkMovingOLS(self, window_type, x, y, weights=None, **kwds):
178-
window = sm.tools.tools.rank(x.values) * 2
178+
window = np.linalg.matrix_rank(x.values) * 2
179179

180180
moving = ols(y=y, x=x, weights=weights, window_type=window_type,
181181
window=window, **kwds)

0 commit comments

Comments
 (0)