Skip to content

Suggestion: MappingSetDataFrame: .to_csv() and read_csv() #517

@joeflack4

Description

@joeflack4

Overview

I was initially suggesting that we could have an alternative constructor for MappingSetDataFrame that could accept paths rather than objects, however, based on some more recent discussions (1, 2), it might be better to do design very similar to pandas:

Reading

msdf: MappingSetDataFrame = read_csv()

Or read_tsv(), or just read().

It could accept various different combinations of params:
a. Path to a SSSOM TSV which includes a metadata comment.
b. Path to a SSSOM TSV with no metadata comment, and path to a metadata yaml.
c. Path to a SSSOM TSV with no metadata comment, and path to a metadata object.
d. a dataframe, and path to a metadata yaml.
e. a dataframe, and path to a metadata object.

Writing

msdf.to_csv()

Or to_tsv().

This would be an alternative or replacement to parse_sssom_table().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions