Skip to content

Commit 3b90523

Browse files
authored
23068: Updates for relational IFA (#375)
1 parent 10564bc commit 3b90523

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

howso/utilities/feature_attributes/relational.py

+15-4
Original file line numberDiff line numberDiff line change
@@ -965,13 +965,24 @@ def _infer_feature_bounds( # noqa: C901
965965
observed_max_value = float(observed_max_value)
966966

967967
output = {'allow_null': allow_null}
968-
if not isnan(min_v):
968+
if min_v and isinstance(min_v, str):
969969
output.update(min=min_v)
970-
if not isnan(max_v):
970+
elif not isnan(min_v):
971+
output.update(min=min_v)
972+
973+
if max_v and isinstance(max_v, str):
974+
output.update(max=max_v)
975+
elif not isnan(max_v):
971976
output.update(max=max_v)
972-
if not isnan(observed_min_value):
977+
978+
if observed_min_value and isinstance(observed_min_value, str):
979+
output.update(observed_min=observed_min_value)
980+
elif not isnan(observed_min_value):
973981
output.update(observed_min=observed_min_value)
974-
if not isnan(observed_max_value):
982+
983+
if observed_max_value and isinstance(observed_max_value, str):
984+
output.update(observed_min=observed_max_value)
985+
elif not isnan(observed_max_value):
975986
output.update(observed_max=observed_max_value)
976987
else:
977988
# If no min/max were found from the data, use min/max size of

0 commit comments

Comments
 (0)