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

Add a to_dict method on SFrame #1909

Open
znation opened this issue May 22, 2019 · 2 comments · May be fixed by #2755
Open

Add a to_dict method on SFrame #1909

znation opened this issue May 22, 2019 · 2 comments · May be fixed by #2755

Comments

@znation
Copy link
Contributor

znation commented May 22, 2019

Pandas has a to_dict method, that returns this equivalent representation:

{k:df[k] for k in df.columns}

For convenience (especially for those porting scripts from Pandas to SFrame), we should provide an equivalent. In the meantime, here's a workaround:

sf_dict = {k:sf[k] for k in sf.column_names()}
@hoytak
Copy link
Collaborator

hoytak commented May 22, 2019

Fair. That makes sense.

@dhivyaaxim
Copy link
Contributor

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

@dhivyaaxim dhivyaaxim linked a pull request Nov 27, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants