Skip to content

Commit

Permalink
improve backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSchmidtblaicherQC committed Dec 8, 2023
1 parent 447c348 commit bb0a188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ def _set_up_and_check_fit_args(
copy_X = self._should_copy_X()

if isinstance(X, pd.DataFrame):
if self.formula is not None:
if hasattr(self, "formula") and self.formula is not None:
lhs, rhs = _parse_formula(
self.formula, include_intercept=self.fit_intercept
)
Expand Down

0 comments on commit bb0a188

Please sign in to comment.