Skip to content

Commit

Permalink
use set with in for conditional statement
Browse files Browse the repository at this point in the history
  • Loading branch information
GStechschulte committed Sep 15, 2023
1 parent c045861 commit abf9c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bambi/interpret/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def set_default_values(model: Model, data_dict: dict, kind: str) -> dict:
dtype = str(model.data[name].dtype)
if re.match(r"float*|int*", dtype):
data_dict[name] = np.mean(model.data[name])
elif dtype == "category" or dtype == "object":
elif dtype in ("category", "dtype"):
data_dict[name] = mode(model.data[name])

if kind in ("comparisons", "slopes"):
Expand Down

0 comments on commit abf9c0d

Please sign in to comment.