From 90216c0eca35b0dd743d726bb2b33af2b88b7d96 Mon Sep 17 00:00:00 2001 From: Sebastian Daza Date: Wed, 11 Dec 2024 09:11:39 +0100 Subject: [PATCH] empty dataframe check --- experiment_utils/experiment_analyzer.py | 4 ++++ 1 file changed, 4 insertions(+) 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)):