Skip to content

Commit 4918b2e

Browse files
committed
patched
1 parent 86ee372 commit 4918b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/testing/estimators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def estimate_coefficient(self) -> tuple[pd.Series, list[pd.Series, pd.Series]]:
357357
self.df.dtypes[factor.name()] == "object"
358358
for factor in patsy_md.rhs_termlist[1].factors
359359
# We want to remove this long term as it prevents us from discovering categoricals within I(...) blocks
360-
if factor in self.df
360+
if factor.name() in self.df.dtypes
361361
)
362362
):
363363
design_info = dmatrix(self.formula.split("~")[1], self.df).design_info

0 commit comments

Comments
 (0)