Skip to content

Commit 123893f

Browse files
committed
MAINT: Avoid future issue in NumPy
1 parent 0502dd7 commit 123893f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linearmodels/panel/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,9 @@ def fit(
18781878
if self._constant:
18791879
assert isinstance(self._constant_index, int)
18801880
self._constant_index = int(
1881-
np.argwhere(np.array(retain) == self._constant_index)
1881+
np.squeeze(
1882+
np.argwhere(np.array(retain) == self._constant_index)
1883+
)
18821884
)
18831885

18841886
# Adjust exog

0 commit comments

Comments
 (0)