Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions causal_testing/testing/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ def estimate_ate(self) -> tuple[pd.Series, list[pd.Series, pd.Series]]:

# Create an empty individual for the control and treated
individuals = pd.DataFrame(1, index=["control", "treated"], columns=model.params.index)


# For Pandas version > 2, we need to explicitly state that the dataframe takes floating-point values
individuals = individuals.astype(float)

# It is ABSOLUTELY CRITICAL that these go last, otherwise we can't index
# the effect with "ate = t_test_results.effect[0]"
Expand Down
Loading