Skip to content

Commit d63f9a2

Browse files
authored
Prepare release (#938)
* Fix import of interpret in __init__.py * Use observed=False explicitly to avoid warning
1 parent 68e370c commit d63f9a2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bambi/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from bambi.formula import Formula
1212
from bambi.models import Model
1313
from bambi.priors import Prior
14+
from bambi import interpret
1415

1516
__version__ = version("bambi")
1617

bambi/interpret/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def average_over(data: pd.DataFrame, covariate: str | list[str]) -> pd.DataFrame
210210
if covariate == "all":
211211
return pd.DataFrame(data[data.columns[-3:]].mean()).T
212212
else:
213-
return data.groupby(covariate, as_index=False)[data.columns[-3:]].mean()
213+
return data.groupby(covariate, as_index=False, observed=False)[data.columns[-3:]].mean()
214214

215215

216216
def get_model_terms(model: Model) -> dict:

0 commit comments

Comments
 (0)