Skip to content

Commit

Permalink
more compatibility checks with input types of numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
ClimbsRocks committed Jan 18, 2018
1 parent f6e77f1 commit ad43237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_ml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def transform(self, in_vals):
return_vals = []
for val in in_vals:
if not isinstance(val, str):
if isinstance(val, float) or isinstance(val, int) or val is None:
if isinstance(val, float) or isinstance(val, int) or val is None or isinstance(val, np.generic):
val = str(val)
else:
val = val.encode('utf-8').decode('utf-8')
Expand Down

0 comments on commit ad43237

Please sign in to comment.