Traceback (most recent call last):


 "tensor_loop.py", line 14, in <module>

df_res = md.DataFrame(score, columns=["probability"])


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/mars/dataframe/initializer.py", line 47, in __init__

df = dataframe_from_tensor(data, index=index, columns=columns, gpu=gpu, sparse=sparse)


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/mars/dataframe/datasource/from_tensor.py", line 357, in dataframe_from_tensor

return op(tensor, index, columns)


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/mars/utils.py", line 451, in _inner

return func(*args, **kwargs)


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/mars/dataframe/datasource/from_tensor.py", line 83, in __call__

return self._call_input_tensor(input_tensor, index, columns)


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/mars/dataframe/datasource/from_tensor.py", line 156, in _call_input_tensor

index_value = parse_index(pd.RangeIndex(start=0, stop=input_tensor.shape[0]))


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/pandas/core/indexes/range.py", line 107, in __new__

stop = ensure_python_int(stop)


 "/home/smartguo/lib/anaconda3/envs/mars/lib/python3.7/site-packages/pandas/core/dtypes/common.py", line 174, in ensure_python_int

raise TypeError(f"Wrong type {type(value)} for value {value}") from err
TypeError: Wrong type <class 'float'> for value nan

Traceback (most recent call last):


 "safaribooks.py", line 104, in unhandled_exception

self.exit("Unhandled Exception: %s (type: %s)" % (o, o.__class__.__name__))


 "safaribooks.py", line 90, in exit

self.error(str(error))


 "safaribooks.py", line 87, in error

self.out(output)


 "safaribooks.py", line 73, in out

sys.stdout.write("\r" + " " * self.columns + "\r" + str(put, "utf-8", "replace") + "\n")
TypeError: decoding str is not supported
