Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

SArray initializer should accept any iterable #915

Closed
nickjong opened this issue Jul 27, 2018 · 3 comments
Closed

SArray initializer should accept any iterable #915

nickjong opened this issue Jul 27, 2018 · 3 comments

Comments

@nickjong
Copy link
Collaborator

It currently fails on e.g. python3 dict_keys:

>>> dict = {'alpha': 0, 'beta':1}
>>> sa = tc.SArray(dict.keys())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jong/Source/turicreate/debug/src/unity/python/turicreate/data_structures/sarray.py", line 422, in __init__
    raise TypeError("Unexpected data source. " \
TypeError: Unexpected data source. Possible data source types are: list, numpy.ndarray, pandas.Series, and string(url)
@dhivyaaxim
Copy link
Contributor

@znation Please assign this ticket to me as I would like to try fixing it and contribute .Thanks in advance!

@TobyRoseman
Copy link
Collaborator

The fix for this is probably very similar to #2470.

@TobyRoseman
Copy link
Collaborator

This is fixed in TuriCreate 6.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants