Skip to content

Store metadata in pandas dataframe is loaded differently than its original format in the Resource #342

@ssssarah

Description

@ssssarah

If you have a Resource r and you store it in a pandas.Dataframe with df = forge.as_dataframe(r, store_metadata=True) and you later convert it back to a Resource with r = forge.from_dataframe(df)

The store metadata is initially stored in resource in r._store_metadata and inside this object you'd have properties such as _rev, _project, _synchronized...

After reloading the resource from the dataframe these properties _rev, _project, _synchronized are top level properties of the Resource and no longer within the _store_metadata object. This _store_metadata becomes None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions