Skip to content
Snippets Groups Projects

Several fixes

Closed David Schäfer requested to merge multifix into develop
Files
2
+ 2
2
@@ -427,7 +427,7 @@ class History:
f"'mask' must be of type pd.DataFrame, but {type(mask).__name__} was given"
)
if any(mask.dtypes != bool):
if (mask.dtypes != bool).any():
raise ValueError("dtype of all columns in 'mask' must be bool")
if not mask.empty and not mask.iloc[:, -1].all():
@@ -455,7 +455,7 @@ class History:
f"'hist' must be of type pd.DataFrame, but {type(obj).__name__} was given"
)
if any(obj.dtypes != float):
if (obj.dtypes != float).any():
raise ValueError("dtype of all columns in hist must be float")
if not obj.empty and (
Loading