Skip to content

Commit

Permalink
MAINT: Avoid future issue in NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Jan 4, 2024
1 parent 0502dd7 commit 123893f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linearmodels/panel/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,9 @@ def fit(
if self._constant:
assert isinstance(self._constant_index, int)
self._constant_index = int(
np.argwhere(np.array(retain) == self._constant_index)
np.squeeze(
np.argwhere(np.array(retain) == self._constant_index)
)
)

# Adjust exog
Expand Down

0 comments on commit 123893f

Please sign in to comment.