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

Implement FoundryDataset.to_pandas() #428

Open
ascourtas opened this issue Jan 25, 2024 · 0 comments
Open

Implement FoundryDataset.to_pandas() #428

ascourtas opened this issue Jan 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ascourtas
Copy link
Contributor

ascourtas commented Jan 25, 2024

As a user, I want to load a dataset as a pandas dataframe.

Assumptions:

A user finds the dataset they want by running this code:

f = Foundry()
datasets = f.search("DOI.123/445")

assert len(datasets) == 1
res = datasets[0].get_as_dict()

Instead of using get_as_dict(), the user wants to get the dataset as a pandas dataframe. Create a method get_as_pandas to allow the user to download the data in this format.

Acceptance Criteria

Given I know what dataset I want to use, when I specify that I want it in a pandas format, then the data downloads in the format I specified.

@kjschmidt913 kjschmidt913 added the refactor issues that are part of/come up during the 2024 refactor label Jan 25, 2024
@ascourtas ascourtas added this to the Foundry Refactor milestone Jan 26, 2024
@kjschmidt913 kjschmidt913 added the enhancement New feature or request label Feb 9, 2024
@kjschmidt913 kjschmidt913 removed the refactor issues that are part of/come up during the 2024 refactor label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants