duneanalytics / dune-client

A framework for interacting with Dune Analytics' officially supported API service
Apache License 2.0
85 stars 22 forks source link

Implement get_latest_result_dataframe helper function #100

Closed TheEdgeOfRage closed 1 year ago

TheEdgeOfRage commented 1 year ago

The get_latest_result implementation parses json, which is slow for large results. The csv endpoint is a lot more efficient, especially if you just need to put the data into a pandas DataFrame. get_latest_result_dataframe is a helper function that calls download_csv and returns a DataFrame from the result.

bh2smith commented 1 year ago

I re-ran the failing test to see if it was just an intermittent failure.