Skip to content

from_dict / to_dict should accept same orient parameter #11905

@femtotrader

Description

@femtotrader

Hello,

pd.DataFrame.to_dict accepts orient parameter in
['dict', 'list', 'series', 'split', 'records', 'index'] (default being 'dict')

http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.to_dict.html

from_dict only accepts orient parameter in ['columns', 'index'] (default being 'columns')
I think that from_dict should accept same parameter orient for API consistency

http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.from_dict.html

Same for Panel
http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.Panel.from_dict.html
to_dict: missing method for Panel

Same for Series
http://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.Series.to_dict.html
from_dict: missing method for Series

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions