Skip to content

Commit bb0a188

Browse files
improve backward compatibility
1 parent 447c348 commit bb0a188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/glum/_glm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ def _set_up_and_check_fit_args(
26622662
copy_X = self._should_copy_X()
26632663

26642664
if isinstance(X, pd.DataFrame):
2665-
if self.formula is not None:
2665+
if hasattr(self, "formula") and self.formula is not None:
26662666
lhs, rhs = _parse_formula(
26672667
self.formula, include_intercept=self.fit_intercept
26682668
)

0 commit comments

Comments
 (0)