Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ssssarah opened this issue Oct 11, 2023 · 0 comments
Labels
invalid This doesn't seem right

Comments

@ssssarah
Copy link
Contributor

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.

@ssssarah ssssarah added the invalid This doesn't seem right label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant