From ad432376eb24a355b2ec3367f1e698aee1627432 Mon Sep 17 00:00:00 2001 From: ClimbsRocks Date: Wed, 17 Jan 2018 18:45:38 -0800 Subject: [PATCH] more compatibility checks with input types of numpy --- auto_ml/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_ml/utils.py b/auto_ml/utils.py index 32fe3df..b9a55b3 100644 --- a/auto_ml/utils.py +++ b/auto_ml/utils.py @@ -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')