Skip to content

Commit f4bf7bd

Browse files
committed
🎨 format and remove unused argments
1 parent 0f0a2b4 commit f4bf7bd

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/njab/stats/ancova.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
"""Analysis of covariance using pingouin and statsmodels."""
22
from __future__ import annotations
3+
34
import numpy as np
45
import pandas as pd
56
import pingouin as pg
67
import statsmodels
78

89

9-
def ancova_pg(df_long: pd.DataFrame,
10-
feat_col: str,
11-
dv: str,
12-
between: str,
13-
covar: list[str] | str,
14-
fdr=0.05) -> pd.DataFrame:
10+
def ancova_pg(
11+
df_long: pd.DataFrame,
12+
feat_col: str,
13+
dv: str,
14+
between: str,
15+
covar: list[str] | str,
16+
) -> pd.DataFrame:
1517
""" Analysis of covariance (ANCOVA) using pg.ancova
1618
https://pingouin-stats.org/generated/pingouin.ancova.html
1719
@@ -117,7 +119,7 @@ def get_scores(self):
117119
covar=self.covar)
118120
return scores.set_index(feat_col)
119121

120-
def ancova(self, random_seed=123):
122+
def ancova(self):
121123
raise NotImplementedError
122124

123125

0 commit comments

Comments
 (0)