Skip to content

Commit

Permalink
minor changes in 'ml/metrics/metrics.py'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna Imshenetska authored and Hanna Imshenetska committed Jan 14, 2025
1 parent dde2e48 commit 45947f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/syngen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.3rc4
0.10.3rc5
2 changes: 1 addition & 1 deletion src/syngen/ml/metrics/metrics_classes/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ def check_empty_df(df: pd.DataFrame, df_type: Literal["original", "synthetic"])
"""
Check if the dataframe is empty after dropping rows with missing values
"""
if df.shape[0] == 0:
if df.empty:
logger.warning(
f"Utility metric calculation is skipped: the {df_type} dataframe is empty "
"after dropping rows with missing values (dropna() function is applied)"
Expand Down

0 comments on commit 45947f6

Please sign in to comment.