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

Add a to_dict method on SFrame #1909

@znation

Description

@znation

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()}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions