diff --git a/experiment_utils/experiment_analyzer.py b/experiment_utils/experiment_analyzer.py index e6db7eb..b3a07bf 100644 --- a/experiment_utils/experiment_analyzer.py +++ b/experiment_utils/experiment_analyzer.py @@ -91,6 +91,10 @@ def __init__( def __check_input(self): + # dataframe is empty + if self.data.isEmpty(): + log_and_raise_error(self.logger, "Dataframe is empty!") + # regression covariates has to be a subset of covariates if len(self.regression_covariates) > 0: if not set(self.regression_covariates).issubset(set(self.covariates)):