Skip to content

Commit

Permalink
empty dataframe check
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaza committed Dec 11, 2024
1 parent 9a1a290 commit 90216c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions experiment_utils/experiment_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 90216c0

Please sign in to comment.