Skip to content

Commit 190c1d9

Browse files
committed
pylint
1 parent 86211d5 commit 190c1d9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

causal_testing/estimation/effect_estimate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
This module contains the EffectEstimate dataclass.
33
"""
44

5-
import pandas as pd
65
from dataclasses import dataclass
6+
import pandas as pd
77

88

99
@dataclass
@@ -39,4 +39,5 @@ def to_dict(self) -> dict:
3939
return d
4040

4141
def to_df(self) -> pd.DataFrame:
42+
"""Return representation as a pandas dataframe."""
4243
return pd.DataFrame({"effect_estimate": self.value, "ci_low": self.ci_low, "ci_high": self.ci_high})

causal_testing/testing/causal_test_result.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def push(s, inc=" "):
5353
if self.effect_estimate.ci_valid():
5454
ci_str = f"CI low: {self.effect_estimate.ci_low.to_dict}\n"
5555
ci_str += f"CI high: {self.effect_estimate.ci_high.to_dict}\n"
56-
if "\n" in ci_str:
57-
ci_str = " " + push(pd.DataFrame(self.confidence_intervals).transpose().to_string(header=False))
5856
confidence_str += f"Confidence intervals:{ci_str}\n"
5957
confidence_str += f"Alpha:{self.estimator.alpha}\n"
6058
adequacy_str = ""

0 commit comments

Comments
 (0)