Skip to content

Commit 2113672

Browse files
Luis Ortizjreback
Luis Ortiz
authored andcommitted
BUG: GH8243 Change unary - to ~. Fixes numpy warning in ols.
1 parent 4336020 commit 2113672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/stats/ols.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def _calc_betas(self, x, y):
818818

819819
betas[i] = math.solve(xx, xy)
820820

821-
mask = -np.isnan(betas).any(axis=1)
821+
mask = ~np.isnan(betas).any(axis=1)
822822
have_betas = np.arange(N)[mask]
823823

824824
return betas, have_betas, mask

0 commit comments

Comments
 (0)