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

Add helper method to convert a query to a Pandas DataFrame #240

Open
davecap opened this issue Mar 9, 2018 · 1 comment
Open

Add helper method to convert a query to a Pandas DataFrame #240

davecap opened this issue Mar 9, 2018 · 1 comment

Comments

@davecap
Copy link
Member

davecap commented Mar 9, 2018

Return a DataFrame from a dataset query. It should use the query parameters if possible, such as fields (to columns), limit, etc...

dataset.query().to_dataframe()

pandas.DataFrame.from_records(list(query), columns=fields)
@jsh2134
Copy link
Contributor

jsh2134 commented Nov 12, 2020

For querying a file

file = Object.retrieve("FILE_ID")
query = file.query()
df = pd.DataFrame(query)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants