Skip to content

Commit bf45829

Browse files
committed
Make sure col_range is always set
1 parent a07a330 commit bf45829

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdmetrics/single_table/privacy/dcr_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def calculate_dcr(synthetic_data, comparison_data, metadata):
133133
if column not in metadata['columns']:
134134
raise ValueError(f'Column {column} was not found in the metadata.')
135135
sdtype = metadata['columns'][column]['sdtype']
136+
col_range = None
136137
if sdtype == 'numerical':
137138
col_range = comparison_data[column].max() - comparison_data[column].min()
138139
elif sdtype == 'datetime':

0 commit comments

Comments
 (0)