Skip to content

ENH: Implement loading and dumping to and from YAML #61224

@acampove

Description

@acampove

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Hi,

I am nowadays mostly working with YAML and moved away from JSON, given that it has proven far superior in terms of userfriendlines (e.g. readability). However I am missing a quick way to load and dump data from yaml to pandas.

Feature Description

df = pd.from_yaml('/path/to/my/yaml/file.yml')
df.to_yaml('/path/to/my/yaml/file.yml')

Alternative Solutions

I can write my wrapper to do all the dirty work myself for now.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions