File tree 1 file changed +15
-4
lines changed
howso/utilities/feature_attributes
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -965,13 +965,24 @@ def _infer_feature_bounds( # noqa: C901
965
965
observed_max_value = float (observed_max_value )
966
966
967
967
output = {'allow_null' : allow_null }
968
- if not isnan (min_v ):
968
+ if min_v and isinstance (min_v , str ):
969
969
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 ):
971
976
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 ):
973
981
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 ):
975
986
output .update (observed_max = observed_max_value )
976
987
else :
977
988
# If no min/max were found from the data, use min/max size of
You can’t perform that action at this time.
0 commit comments